kill the running threads before disconnecting

This commit is contained in:
Brian Beggs 2010-07-06 08:24:23 -04:00 committed by Tom Nichols
parent c5b5cc4af1
commit 66c6c21ad8

View File

@ -338,9 +338,9 @@ class XMLStream(object):
''' '''
Disconnects and shuts down all event threads. Disconnects and shuts down all event threads.
''' '''
self.disconnect() self.run = False
self.quit.set()
self.scheduler.run = False self.scheduler.run = False
self.disconnect()
def incoming_filter(self, xmlobj): def incoming_filter(self, xmlobj):
return xmlobj return xmlobj