Update send_client.py to call disconnect() from a threaded handler.

This commit is contained in:
Lance Stout 2012-05-06 20:07:05 -07:00
parent 03dedfc871
commit ec99339140

View file

@ -47,7 +47,7 @@ class SendMsgBot(sleekxmpp.ClientXMPP):
# and the XML streams are ready for use. We want to # and the XML streams are ready for use. We want to
# listen for this event so that we we can initialize # listen for this event so that we we can initialize
# our roster. # our roster.
self.add_event_handler("session_start", self.start) self.add_event_handler("session_start", self.start, threaded=True)
def start(self, event): def start(self, event):
""" """