diff options
author | Lance Stout <lancestout@gmail.com> | 2014-01-21 12:05:02 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2014-01-21 12:05:02 -0800 |
commit | d002d4c06fd90f5c6c0ddb38c0a38efc8fefd9ea (patch) | |
tree | 281423462233ada0be64f93b94b40f29c9b0b0b4 /sleekxmpp/xmlstream/xmlstream.py | |
parent | 12995e280e7dcb9a34933d9e4fa3614d1b958eaa (diff) | |
parent | 7c03cc622c8f00768097d8170887aefdad1d57c6 (diff) | |
download | slixmpp-d002d4c06fd90f5c6c0ddb38c0a38efc8fefd9ea.tar.gz slixmpp-d002d4c06fd90f5c6c0ddb38c0a38efc8fefd9ea.tar.bz2 slixmpp-d002d4c06fd90f5c6c0ddb38c0a38efc8fefd9ea.tar.xz slixmpp-d002d4c06fd90f5c6c0ddb38c0a38efc8fefd9ea.zip |
Merge pull request #274 from anton-ryzhov/fixes
Examples and thread counting
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 2 |
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 |