From e7c89235baa904b9a6747f5bfb72f57a73c065d5 Mon Sep 17 00:00:00 2001 From: Alex Wenckus Date: Thu, 26 Jan 2006 18:31:35 +0000 Subject: [PATCH] -shutting down the listener thread properly {SMACK-120} git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3367 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/PacketReader.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/org/jivesoftware/smack/PacketReader.java b/source/org/jivesoftware/smack/PacketReader.java index 7da252805..4167719bd 100644 --- a/source/org/jivesoftware/smack/PacketReader.java +++ b/source/org/jivesoftware/smack/PacketReader.java @@ -187,6 +187,11 @@ class PacketReader { } } done = true; + + // Make sure that the listenerThread is awake to shutdown properly + synchronized (listenerThread) { + listenerThread.notify(); + } } /**