mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Throw checked exception if concurrent attempts are made to remove a
contact.
This commit is contained in:
@@ -1229,6 +1229,7 @@ DatabaseCleaner.Callback {
|
||||
if(LOG.isLoggable(Level.FINE)) LOG.fine("Removing contact " + c);
|
||||
contactLock.writeLock().lock();
|
||||
try {
|
||||
if(!containsContact(c)) throw new NoSuchContactException();
|
||||
messageLock.writeLock().lock();
|
||||
try {
|
||||
messageFlagLock.writeLock().lock();
|
||||
|
||||
Reference in New Issue
Block a user