mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Call the listeners if a new ack might need to be sent.
This commit is contained in:
@@ -4,6 +4,7 @@ package net.sf.briar.api.db;
|
||||
public interface DatabaseListener {
|
||||
|
||||
static enum Event {
|
||||
ACKS_ADDED,
|
||||
CONTACTS_UPDATED,
|
||||
MESSAGES_ADDED,
|
||||
SUBSCRIPTIONS_UPDATED,
|
||||
|
||||
@@ -937,6 +937,7 @@ DatabaseCleaner.Callback {
|
||||
contactLock.readLock().unlock();
|
||||
}
|
||||
// Call the listeners outside the lock
|
||||
callListeners(Event.ACKS_ADDED);
|
||||
if(anyAdded) callListeners(Event.MESSAGES_ADDED);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user