explictly set account status to offline when waiting for push

This commit is contained in:
Daniel Gultsch 2016-08-09 17:25:45 +02:00
parent 121312d103
commit a51de9fcd9

View file

@ -1327,8 +1327,9 @@ public class XmppConnection implements Runnable {
} }
socket.close(); socket.close();
Log.d(Config.LOGTAG,account.getJid().toBareJid()+": closed tcp without closing stream"); Log.d(Config.LOGTAG,account.getJid().toBareJid()+": closed tcp without closing stream");
changeStatus(Account.State.OFFLINE);
} catch (IOException | InterruptedException e) { } catch (IOException | InterruptedException e) {
return; Log.d(Config.LOGTAG,account.getJid().toBareJid()+": error while closing socket for waitForPush()");
} }
} }
}).start(); }).start();