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();
|
||||
}
|
||||
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": last tag was " + nextTag);
|
||||
if (account.getStatus() == Account.State.ONLINE) {
|
||||
account. setStatus(Account.State.OFFLINE);
|
||||
if (statusListener != null) {
|
||||
statusListener.onStatusChanged(account);
|
||||
}
|
||||
}
|
||||
throw new IOException("reached end of stream. last tag was "+nextTag);
|
||||
}
|
||||
|
||||
private void acknowledgeStanzaUpTo(int serverCount) {
|
||||
|
|
Loading…
Reference in New Issue