1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-27 00:32:07 +01:00

SMACK-230 Added synchronization since disconnect can be called from multiple threads.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_2_0@12540 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
rcollier 2011-06-23 19:55:10 +00:00
parent da5434505b
commit 402b430291

View file

@ -419,7 +419,7 @@ public class XMPPConnection extends Connection {
saslAuthentication.init();
}
public void disconnect(Presence unavailablePresence) {
public synchronized void disconnect(Presence unavailablePresence) {
// If not connected, ignore this request.
if (packetReader == null || packetWriter == null) {
return;