diff options
author | Lance Stout <lancestout@gmail.com> | 2012-05-10 10:22:38 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-05-10 10:22:38 -0700 |
commit | e918a860281675fc19c2c09bcf120c883ac7575f (patch) | |
tree | 21cd318072293e854349a6660d4f4d68c09c10db /sleekxmpp/plugins/xep_0078/legacyauth.py | |
parent | 24234bf7182066d6c2ee827c8121b8daede56663 (diff) | |
download | slixmpp-e918a860281675fc19c2c09bcf120c883ac7575f.tar.gz slixmpp-e918a860281675fc19c2c09bcf120c883ac7575f.tar.bz2 slixmpp-e918a860281675fc19c2c09bcf120c883ac7575f.tar.xz slixmpp-e918a860281675fc19c2c09bcf120c883ac7575f.zip |
Make the error message better regarding hanged threads.
All event handlers which call disconnect() MUST be registered using
`add_event_handler(..., threaded=True)` in order to prevent temporarily
deadlocking until a timeout occurs.
This is required because disconnect() waits for the main threads to
exit before returning, including the event processing thread. Since
handlers registered without `threaded=True` run in the event processing
thread, the disconnect() call will deadlock.
Diffstat (limited to 'sleekxmpp/plugins/xep_0078/legacyauth.py')
0 files changed, 0 insertions, 0 deletions