diff options
author | Brian Beggs <macdiesel@gmail.com> | 2010-07-06 08:24:23 -0400 |
---|---|---|
committer | Tom Nichols <tmnichols@gmail.com> | 2010-07-09 15:36:13 -0400 |
commit | 66c6c21ad83c55246eb1a57d2f2885949db87c1a (patch) | |
tree | 9e81d923cad7b70e1982a38ac1dc78a2a4059649 /sleekxmpp | |
parent | c5b5cc4af1f5fd9764caea4a92efdf9d4db219d7 (diff) | |
download | slixmpp-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.py | 4 |
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 |