summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorBrian Beggs <macdiesel@gmail.com>2010-07-06 08:24:23 -0400
committerTom Nichols <tmnichols@gmail.com>2010-07-09 15:36:13 -0400
commit66c6c21ad83c55246eb1a57d2f2885949db87c1a (patch)
tree9e81d923cad7b70e1982a38ac1dc78a2a4059649 /sleekxmpp
parentc5b5cc4af1f5fd9764caea4a92efdf9d4db219d7 (diff)
downloadslixmpp-66c6c21ad83c55246eb1a57d2f2885949db87c1a.tar.gz
slixmpp-66c6c21ad83c55246eb1a57d2f2885949db87c1a.tar.bz2
slixmpp-66c6c21ad83c55246eb1a57d2f2885949db87c1a.tar.xz
slixmpp-66c6c21ad83c55246eb1a57d2f2885949db87c1a.zip
kill the running threads before disconnecting
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py4
1 files changed, 2 insertions, 2 deletions
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