mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
DatabaseComponent throws an exception instead of returning silently if a contact is removed during an operation involving that contact. More unit tests.
This commit is contained in:
@@ -18,7 +18,6 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import net.sf.briar.api.db.ContactId;
|
||||
import net.sf.briar.api.db.DatabaseComponent;
|
||||
import net.sf.briar.api.db.DbException;
|
||||
import net.sf.briar.api.db.Rating;
|
||||
import net.sf.briar.api.db.Status;
|
||||
@@ -527,7 +526,7 @@ abstract class JdbcDatabase implements Database<Connection> {
|
||||
rs.close();
|
||||
ps.close();
|
||||
Set<BatchId> lost;
|
||||
if(received == DatabaseComponent.RETRANSMIT_THRESHOLD) {
|
||||
if(received == RETRANSMIT_THRESHOLD) {
|
||||
// Expire batches related to the oldest received bundle
|
||||
assert oldestBundle != null;
|
||||
lost = findLostBatches(txn, c, oldestBundle);
|
||||
|
||||
Reference in New Issue
Block a user