From e402348f9b24853f08f323fe6208bbd42d6ced49 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 3 Jun 2016 14:18:43 +0200 Subject: [PATCH] disconnect account in background after deletion. fixes #1861 --- .../conversations/services/XmppConnectionService.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 06ecb22b9..fc8159af0 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -1562,7 +1562,12 @@ public class XmppConnectionService extends Service { } } if (account.getXmppConnection() != null) { - this.disconnect(account, true); + new Thread(new Runnable() { + @Override + public void run() { + disconnect(account, true); + } + }); } Runnable runnable = new Runnable() { @Override