Renamed a DB event.

This commit is contained in:
akwizgran
2011-10-14 19:49:47 +01:00
parent e00e12d473
commit bd91e7ebf3
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ package net.sf.briar.api.db;
public interface DatabaseListener {
static enum Event {
ACKS_ADDED,
BATCH_RECEIVED,
CONTACTS_UPDATED,
MESSAGES_ADDED,
SUBSCRIPTIONS_UPDATED,

View File

@@ -937,7 +937,7 @@ DatabaseCleaner.Callback {
contactLock.readLock().unlock();
}
// Call the listeners outside the lock
callListeners(Event.ACKS_ADDED);
callListeners(Event.BATCH_RECEIVED);
if(anyAdded) callListeners(Event.MESSAGES_ADDED);
}