summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/scheduler.py
diff options
context:
space:
mode:
authorThom Nichols <tmnichols@gmail.com>2010-06-25 16:30:45 -0400
committerThom Nichols <tmnichols@gmail.com>2010-06-25 16:30:45 -0400
commitd22f6a2aa523a5a19b1cb20e99e3091976a461c1 (patch)
tree683bac4f851f7e03cfba672958d7d87c1c28fa4b /sleekxmpp/xmlstream/scheduler.py
parentbf2bf29fc69fa82d8b0a882c99395ae25b11ab69 (diff)
downloadslixmpp-d22f6a2aa523a5a19b1cb20e99e3091976a461c1.tar.gz
slixmpp-d22f6a2aa523a5a19b1cb20e99e3091976a461c1.tar.bz2
slixmpp-d22f6a2aa523a5a19b1cb20e99e3091976a461c1.tar.xz
slixmpp-d22f6a2aa523a5a19b1cb20e99e3091976a461c1.zip
make scheduler thread a daemon to prevent shutdown hanging
Diffstat (limited to 'sleekxmpp/xmlstream/scheduler.py')
-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()