disconnect account in background after deletion. fixes #1861

This commit is contained in:
Daniel Gultsch 2016-06-03 14:18:43 +02:00
parent 583aba1b44
commit e402348f9b
1 changed files with 6 additions and 1 deletions

View File

@ -1562,7 +1562,12 @@ public class XmppConnectionService extends Service {
} }
} }
if (account.getXmppConnection() != null) { if (account.getXmppConnection() != null) {
this.disconnect(account, true); new Thread(new Runnable() {
@Override
public void run() {
disconnect(account, true);
}
});
} }
Runnable runnable = new Runnable() { Runnable runnable = new Runnable() {
@Override @Override