mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Don't call finish() unless at least one message ID was written.
This commit is contained in:
@@ -575,7 +575,7 @@ DatabaseCleaner.Callback {
|
||||
if(!o.writeMessageId(m)) break;
|
||||
sent.add(m);
|
||||
}
|
||||
o.finish();
|
||||
if(!sent.isEmpty()) o.finish();
|
||||
db.commitTransaction(txn);
|
||||
return sent;
|
||||
} catch(DbException e) {
|
||||
|
||||
Reference in New Issue
Block a user