aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-03 14:18:43 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-06-03 14:18:43 +0200
commite402348f9b24853f08f323fe6208bbd42d6ced49 (patch)
tree7b6e6611eff5449a0cbed2c8576c1928ab2f3a97
parent583aba1b442a1b41a11442d51dc31c5d1f18617e (diff)
disconnect account in background after deletion. fixes #1861
Diffstat (limited to '')
-rw-r--r--src/main/java/eu/siacs/conversations/services/XmppConnectionService.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
index 06ecb22b..fc8159af 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