mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Moved blocking call out of event handler. Fixes issue #3611961.
This commit is contained in:
@@ -135,8 +135,7 @@ abstract class DuplexConnection implements DatabaseListener {
|
||||
public void eventOccurred(DatabaseEvent e) {
|
||||
if(e instanceof ContactRemovedEvent) {
|
||||
ContactRemovedEvent c = (ContactRemovedEvent) e;
|
||||
// FIXME: Listeners should not block
|
||||
if(contactId.equals(c.getContactId())) dispose(false, true);
|
||||
if(contactId.equals(c.getContactId())) writerTasks.add(CLOSE);
|
||||
} else if(e instanceof GroupMessageAddedEvent) {
|
||||
if(canSendOffer.getAndSet(false))
|
||||
dbExecutor.execute(new GenerateOffer());
|
||||
|
||||
Reference in New Issue
Block a user