diff options
Diffstat (limited to 'sleekxmpp')
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 62083de8..34c9773c 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -1204,7 +1204,9 @@ class XMLStream(object): self.__thread_count) self.__thread_cond.wait(4) if self.__thread_count != 0: - raise Exception("Hanged threads: %s" % threading.enumerate()) + log.error("Hanged threads: %s" % threading.enumerate()) + log.error("This may be due to calling disconnect() " + \ + "from a non-threaded event handler.") def process(self, **kwargs): """Initialize the XML streams and begin processing events. |