diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-03 14:18:43 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-06-03 14:18:43 +0200 |
commit | e402348f9b24853f08f323fe6208bbd42d6ced49 (patch) | |
tree | 7b6e6611eff5449a0cbed2c8576c1928ab2f3a97 /src | |
parent | 583aba1b442a1b41a11442d51dc31c5d1f18617e (diff) |
disconnect account in background after deletion. fixes #1861
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | 7 |
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 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 |