mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-23 06:42:05 +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:
parent
da5434505b
commit
402b430291
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ public class XMPPConnection extends Connection {
|
||||||
saslAuthentication.init();
|
saslAuthentication.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void disconnect(Presence unavailablePresence) {
|
public synchronized void disconnect(Presence unavailablePresence) {
|
||||||
// If not connected, ignore this request.
|
// If not connected, ignore this request.
|
||||||
if (packetReader == null || packetWriter == null) {
|
if (packetReader == null || packetWriter == null) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue