From a51de9fcd9af0162b20b44bfe510c9f00859a62b Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 9 Aug 2016 17:25:45 +0200 Subject: explictly set account status to offline when waiting for push --- src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java index 6ed9f9d3..1072e29d 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java @@ -1327,8 +1327,9 @@ public class XmppConnection implements Runnable { } socket.close(); Log.d(Config.LOGTAG,account.getJid().toBareJid()+": closed tcp without closing stream"); + changeStatus(Account.State.OFFLINE); } catch (IOException | InterruptedException e) { - return; + Log.d(Config.LOGTAG,account.getJid().toBareJid()+": error while closing socket for waitForPush()"); } } }).start(); -- cgit v1.2.3