1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-09 10:19:41 +02:00

Merge pull request #416 from Flowdalic/connected-boolean

Set 'connected' to 'true' as early as possible
This commit is contained in:
Florian Schmaus 2020-08-07 12:43:53 +02:00 committed by GitHub
commit cf92566e26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 2 deletions

View file

@ -836,6 +836,8 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
// there is an error establishing the connection
connectUsingConfiguration();
connected = true;
// We connected successfully to the servers TCP port
initConnection();