1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

Report not connected/authenticated when resumeable

Since c81cd34561 we can report not
connected/authenticated when the client is disconnected but the stream
could be resumed. The previous behavior caused some confusion among
the users.
This commit is contained in:
Florian Schmaus 2014-11-16 18:53:31 +01:00
parent 763f9c7c14
commit 504b550ef2

View file

@ -493,11 +493,11 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
if (isSmResumptionPossible() && instant) {
disconnectedButResumeable = true;
} else {
authenticated = false;
connected = false;
usingTLS = false;
disconnectedButResumeable = false;
}
authenticated = false;
connected = false;
usingTLS = false;
reader = null;
writer = null;
maybeCompressFeaturesReceived.init();