mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 11:42:15 -05:00
throw exception at the end of the stream
This commit is contained in:
parent
e10a0b0c4c
commit
0f9058ffef
@ -479,13 +479,7 @@ public class XmppConnection implements Runnable {
|
|||||||
}
|
}
|
||||||
nextTag = tagReader.readTag();
|
nextTag = tagReader.readTag();
|
||||||
}
|
}
|
||||||
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": last tag was " + nextTag);
|
throw new IOException("reached end of stream. last tag was "+nextTag);
|
||||||
if (account.getStatus() == Account.State.ONLINE) {
|
|
||||||
account. setStatus(Account.State.OFFLINE);
|
|
||||||
if (statusListener != null) {
|
|
||||||
statusListener.onStatusChanged(account);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void acknowledgeStanzaUpTo(int serverCount) {
|
private void acknowledgeStanzaUpTo(int serverCount) {
|
||||||
|
Loading…
Reference in New Issue
Block a user