From ec99339140364ade00451689fe308c655f68165a Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sun, 6 May 2012 20:07:05 -0700 Subject: [PATCH] Update send_client.py to call disconnect() from a threaded handler. --- examples/send_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/send_client.py b/examples/send_client.py index caf47687..5b34bbc9 100755 --- a/examples/send_client.py +++ b/examples/send_client.py @@ -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): """