removed unnecessary wait for disconnect

This commit is contained in:
Daniel Gultsch 2016-04-04 20:07:09 +02:00
parent 61997912fd
commit 5787687997

View File

@ -2571,12 +2571,6 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
if (!account.isOptionSet(Account.OPTION_DISABLED)) {
if (!force) {
disconnect(account, false);
try {
Log.d(Config.LOGTAG, "wait for disconnect");
Thread.sleep(500); //sleep wait for disconnect
} catch (InterruptedException e) {
//ignored
}
}
Thread thread = new Thread(connection);
connection.setInteractive(interactive);