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

Fixed possible delay when TLS is not supported by the server. SMACK-161

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@4773 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2006-08-02 22:17:11 +00:00 committed by gato
parent f5c5213e61
commit 47cc26e234
2 changed files with 11 additions and 1 deletions

View file

@ -477,7 +477,8 @@ class PacketReader {
}
}
}
if (!startTLSReceived) {
// Release the lock after TLS has been negotiated or we are not insterested in TLS
if (!startTLSReceived || !connection.getConfiguration().isTLSEnabled()) {
releaseConnectionIDLock();
}
}