Update other examples to use threaded mode for handlers that call disconnect()

This commit is contained in:
Lance Stout
2012-05-06 20:19:02 -07:00
parent ec99339140
commit 24234bf718
5 changed files with 6 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ class PubsubClient(sleekxmpp.ClientXMPP):
self.data = data
self.pubsub_server = server
self.add_event_handler('session_start', self.start)
self.add_event_handler('session_start', self.start, threaded=True)
def start(self, event):
self.get_roster()