mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 23:29:52 +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) {
|
public void eventOccurred(DatabaseEvent e) {
|
||||||
if(e instanceof ContactRemovedEvent) {
|
if(e instanceof ContactRemovedEvent) {
|
||||||
ContactRemovedEvent c = (ContactRemovedEvent) e;
|
ContactRemovedEvent c = (ContactRemovedEvent) e;
|
||||||
// FIXME: Listeners should not block
|
if(contactId.equals(c.getContactId())) writerTasks.add(CLOSE);
|
||||||
if(contactId.equals(c.getContactId())) dispose(false, true);
|
|
||||||
} else if(e instanceof GroupMessageAddedEvent) {
|
} else if(e instanceof GroupMessageAddedEvent) {
|
||||||
if(canSendOffer.getAndSet(false))
|
if(canSendOffer.getAndSet(false))
|
||||||
dbExecutor.execute(new GenerateOffer());
|
dbExecutor.execute(new GenerateOffer());
|
||||||
|
|||||||
Reference in New Issue
Block a user