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:
parent
489a48bf86
commit
013f4d630a
4 changed files with 9 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue