summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
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