disconnect account in background after deletion. fixes #1861
This commit is contained in:
parent
583aba1b44
commit
e402348f9b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue