Update send_client.py to call disconnect() from a threaded handler.
This commit is contained in:
parent
03dedfc871
commit
ec99339140
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class SendMsgBot(sleekxmpp.ClientXMPP):
|
|||
# and the XML streams are ready for use. We want to
|
||||
# listen for this event so that we we can initialize
|
||||
# our roster.
|
||||
self.add_event_handler("session_start", self.start)
|
||||
self.add_event_handler("session_start", self.start, threaded=True)
|
||||
|
||||
def start(self, event):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue