summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Ryzhov <anton@ryzhov.me>2014-01-21 19:28:17 +0400
committerAnton Ryzhov <anton@ryzhov.me>2014-01-21 19:28:17 +0400
commit7c03cc622c8f00768097d8170887aefdad1d57c6 (patch)
tree281423462233ada0be64f93b94b40f29c9b0b0b4
parentcebfd844167cdb334c475bb579c32905e68159bc (diff)
downloadslixmpp-7c03cc622c8f00768097d8170887aefdad1d57c6.tar.gz
slixmpp-7c03cc622c8f00768097d8170887aefdad1d57c6.tar.bz2
slixmpp-7c03cc622c8f00768097d8170887aefdad1d57c6.tar.xz
slixmpp-7c03cc622c8f00768097d8170887aefdad1d57c6.zip
Thread counting fix
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 4d17d08c..3bc1f652 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -1343,12 +1343,12 @@ class XMLStream(object):
return True
def _start_thread(self, name, target, track=True):
- self.__active_threads.add(name)
self.__thread[name] = threading.Thread(name=name, target=target)
self.__thread[name].daemon = self._use_daemons
self.__thread[name].start()
if track:
+ self.__active_threads.add(name)
with self.__thread_cond:
self.__thread_count += 1