aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-08-09 17:25:45 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-08-09 17:25:45 +0200
commita51de9fcd9af0162b20b44bfe510c9f00859a62b (patch)
treed07337a5d7cd068a0940d016a55cbda6e697033c /src
parent121312d1032772d9520b3cb05e15af962d1974b3 (diff)
explictly set account status to offline when waiting for push
Diffstat (limited to 'src')
-rw-r--r--src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java3
1 files changed, 2 insertions, 1 deletions
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();