Update other examples to use threaded mode for handlers that call disconnect()
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user