1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 17:19:39 +02:00

Move TLS and SASL sync points into subclasses

In preperation of subclasses with different connection approaches.
This commit is contained in:
Florian Schmaus 2018-02-20 09:01:11 +01:00
parent 5e25491877
commit 793d3c47ad
4 changed files with 6 additions and 11 deletions

View file

@ -903,6 +903,12 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
// We connected successfully to the servers TCP port
initConnection();
// TLS handled will be successful either if TLS was established, or if it was not mandatory.
tlsHandled.checkIfSuccessOrWaitOrThrow();
// Wait with SASL auth until the SASL mechanisms have been received
saslFeatureReceived.checkIfSuccessOrWaitOrThrow();
}
/**