summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
diff options
context:
space:
mode:
authorTom Nichols <tmnichols@gmail.com>2010-06-28 11:04:18 -0400
committerTom Nichols <tmnichols@gmail.com>2010-06-28 11:04:18 -0400
commite8d37b409c0e29ebb6dcfac2651d5cedc07af965 (patch)
treeb13c5f3fa6b75f089693c49915b3bc794c0dc982 /sleekxmpp/xmlstream
parent898f96f26553f7702df20fd04fc7ae9befc72109 (diff)
downloadslixmpp-e8d37b409c0e29ebb6dcfac2651d5cedc07af965.tar.gz
slixmpp-e8d37b409c0e29ebb6dcfac2651d5cedc07af965.tar.bz2
slixmpp-e8d37b409c0e29ebb6dcfac2651d5cedc07af965.tar.xz
slixmpp-e8d37b409c0e29ebb6dcfac2651d5cedc07af965.zip
make the scheduler a daemon thread to prevent hanging when the main thread exits.
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r--sleekxmpp/xmlstream/scheduler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/scheduler.py b/sleekxmpp/xmlstream/scheduler.py
index 40aaf695..e4df02d1 100644
--- a/sleekxmpp/xmlstream/scheduler.py
+++ b/sleekxmpp/xmlstream/scheduler.py
@@ -41,6 +41,7 @@ class Scheduler(object):
def process(self, threaded=True):
if threaded:
self.thread = threading.Thread(name='shedulerprocess', target=self._process)
+ self.thread.daemon = True
self.thread.start()
else:
self._process()