1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-12-08 14:11:07 +01:00

Move duplicate code in AbstractXMPPConnection

from XMPP(TCP|BOSH)Connection.
This commit is contained in:
Florian Schmaus 2016-11-12 11:03:44 +01:00
parent 489a48bf86
commit 013f4d630a
4 changed files with 9 additions and 12 deletions

View file

@ -369,6 +369,14 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
// Perform the actual connection to the XMPP service
connectInternal();
// Wait with SASL auth until the SASL mechanisms have been received
saslFeatureReceived.checkIfSuccessOrWaitOrThrow();
// Make note of the fact that we're now connected.
connected = true;
callConnectionConnectedListener();
return this;
}