Skip to content
Snippets Groups Projects
Commit 458258f2 authored by akwizgran's avatar akwizgran
Browse files

Moved blocking call out of event handler. Fixes issue #3611961.

parent f8d9170a
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment