mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 13:19:52 +01:00
Add comment to explain that starting timer may be a no-op.
This commit is contained in:
@@ -820,7 +820,9 @@ class DatabaseComponentImpl<T> implements DatabaseComponent {
|
|||||||
for (MessageId m : a.getMessageIds()) {
|
for (MessageId m : a.getMessageIds()) {
|
||||||
if (db.containsVisibleMessage(txn, c, m)) {
|
if (db.containsVisibleMessage(txn, c, m)) {
|
||||||
if (db.raiseSeenFlag(txn, c, m)) {
|
if (db.raiseSeenFlag(txn, c, m)) {
|
||||||
// This is the first time the message has been acked
|
// This is the first time the message has been acked by
|
||||||
|
// this contact. Start the cleanup timer (a no-op unless
|
||||||
|
// a cleanup deadline has been set for this message)
|
||||||
long deadline = db.startCleanupTimer(txn, m);
|
long deadline = db.startCleanupTimer(txn, m);
|
||||||
if (deadline != TIMER_NOT_STARTED) {
|
if (deadline != TIMER_NOT_STARTED) {
|
||||||
transaction.attach(new CleanupTimerStartedEvent(m,
|
transaction.attach(new CleanupTimerStartedEvent(m,
|
||||||
|
|||||||
Reference in New Issue
Block a user