fritzy/SleekXMPP — Issue #141: Disconnect(wait=True) crashes after sending MUC message
Author: bond
Created: 2012-01-27 12:24:59+00:00
State: open

I've created a script based on the MUC bot example. After sending a MUC message, I call "disconnect(wait=True)" directly after it. It consistently crashes every time.

How to reproduce: run the Echo bot, but call "disconnect(wait=True)" directly after "muc_message" function calls "self.send_message()".

Debug output:

DEBUG MUC presence from utviklere@conference.chat.copyleft.no/db@chat.copyleft.no : {'status': '', 'nick': u'db@chat.copyleft.no', 'jid': , 'room': u'utviklere@conference.chat.copyleft.no', 'show': '', 'affiliation': 'none', 'role': 'participant'}
DEBUG MUC presence from utviklere@conference.chat.copyleft.no/Lidless : {'status': '', 'nick': u'Lidless', 'jid': , 'room': u'utviklere@conference.chat.copyleft.no', 'show': '', 'affiliation': 'none', 'role': 'participant'}
DEBUG SEND (IMMED):
DEBUG Waiting for from server
DEBUG End of stream recieved
DEBUG Could not acquire lock
Done
Exception in thread stream_event_handler_0 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
File "/usr/lib/python2.6/threading.py", line 484, in run

Version: SleekXMPP 1.0rc3 running on Python 2.6.

Would just like to add that SleekXMPP is very nice, and thanks for the great effort put into it! :-)