From 66c6c21ad83c55246eb1a57d2f2885949db87c1a Mon Sep 17 00:00:00 2001 From: Brian Beggs Date: Tue, 6 Jul 2010 08:24:23 -0400 Subject: kill the running threads before disconnecting --- sleekxmpp/xmlstream/xmlstream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sleekxmpp/xmlstream') diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 7f2c8498..00af3d2e 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -338,9 +338,9 @@ class XMLStream(object): ''' Disconnects and shuts down all event threads. ''' - self.disconnect() - self.quit.set() + self.run = False self.scheduler.run = False + self.disconnect() def incoming_filter(self, xmlobj): return xmlobj -- cgit v1.2.3