diff options
author | Lance Stout <lancestout@gmail.com> | 2012-05-06 20:07:05 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-05-06 20:07:05 -0700 |
commit | ec99339140364ade00451689fe308c655f68165a (patch) | |
tree | b021c9a5bf422fcef136ecf17bb1737a82f8d179 | |
parent | 03dedfc871394a246d48b78ed9cf322218ab5168 (diff) | |
download | slixmpp-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-x | examples/send_client.py | 2 |
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): """ |