mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
Fixed existing unit tests for DatabaseComponentImpl, and two bugs.
This commit is contained in:
@@ -514,7 +514,7 @@ DatabaseCleaner.Callback {
|
||||
subscriptionLock.readLock().unlock();
|
||||
}
|
||||
} finally {
|
||||
messageLock.readLock().lock();
|
||||
messageLock.readLock().unlock();
|
||||
}
|
||||
if(messages.isEmpty()) return null;
|
||||
// Record the message as sent
|
||||
@@ -1589,7 +1589,8 @@ DatabaseCleaner.Callback {
|
||||
} finally {
|
||||
contactLock.writeLock().unlock();
|
||||
}
|
||||
callListeners(new LocalSubscriptionsUpdatedEvent(affected));
|
||||
if(!affected.isEmpty())
|
||||
callListeners(new LocalSubscriptionsUpdatedEvent(affected));
|
||||
}
|
||||
|
||||
public void subscribe(Group g) throws DbException {
|
||||
|
||||
@@ -347,8 +347,8 @@ class KeyManagerImpl extends TimerTask implements KeyManager, DatabaseListener {
|
||||
this.transportId = transportId;
|
||||
}
|
||||
|
||||
private EndpointKey(Endpoint ct) {
|
||||
this(ct.getContactId(), ct.getTransportId());
|
||||
private EndpointKey(Endpoint ep) {
|
||||
this(ep.getContactId(), ep.getTransportId());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user