summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-05-06 20:07:05 -0700
committerLance Stout <lancestout@gmail.com>2012-05-06 20:07:05 -0700
commitec99339140364ade00451689fe308c655f68165a (patch)
treeb021c9a5bf422fcef136ecf17bb1737a82f8d179
parent03dedfc871394a246d48b78ed9cf322218ab5168 (diff)
downloadslixmpp-ec99339140364ade00451689fe308c655f68165a.tar.gz
slixmpp-ec99339140364ade00451689fe308c655f68165a.tar.bz2
slixmpp-ec99339140364ade00451689fe308c655f68165a.tar.xz
slixmpp-ec99339140364ade00451689fe308c655f68165a.zip
Update send_client.py to call disconnect() from a threaded handler.
-rwxr-xr-xexamples/send_client.py2
1 files changed, 1 insertions, 1 deletions
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):
"""