mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 22:29:53 +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;
|
if(!o.writeMessageId(m)) break;
|
||||||
sent.add(m);
|
sent.add(m);
|
||||||
}
|
}
|
||||||
o.finish();
|
if(!sent.isEmpty()) o.finish();
|
||||||
db.commitTransaction(txn);
|
db.commitTransaction(txn);
|
||||||
return sent;
|
return sent;
|
||||||
} catch(DbException e) {
|
} catch(DbException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user