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
1 changed files with 3 additions and 3 deletions

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 {