From 40624c9c0b74b537351cf84708e180fca2ec5028 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Wed, 16 Jul 2003 02:49:04 +0000 Subject: [PATCH] Small tweaks. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1986 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/XMPPConnection.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/org/jivesoftware/smack/XMPPConnection.java b/source/org/jivesoftware/smack/XMPPConnection.java index 80b41edf8..3d9e4452d 100644 --- a/source/org/jivesoftware/smack/XMPPConnection.java +++ b/source/org/jivesoftware/smack/XMPPConnection.java @@ -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 {