mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 00:59:39 +02:00
Merge pull request #416 from Flowdalic/connected-boolean
Set 'connected' to 'true' as early as possible
This commit is contained in:
commit
cf92566e26
4 changed files with 15 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue