1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +01:00

Small tweaks.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1986 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-07-16 02:49:04 +00:00 committed by mtucker
parent 98d41485d4
commit 40624c9c0b

View file

@ -424,11 +424,11 @@ public class XMPPConnection {
public void close() {
// Set presence to offline.
packetWriter.sendPacket(new Presence(Presence.Type.UNAVAILABLE));
packetWriter.shutdown();
packetReader.shutdown();
// Wait 100 ms for processes to clean-up, then shutdown.
packetWriter.shutdown();
// Wait 150 ms for processes to clean-up, then shutdown.
try {
Thread.sleep(100);
Thread.sleep(150);
}
catch (Exception e) { }
try {