From d22f6a2aa523a5a19b1cb20e99e3091976a461c1 Mon Sep 17 00:00:00 2001 From: Thom Nichols Date: Fri, 25 Jun 2010 16:30:45 -0400 Subject: make scheduler thread a daemon to prevent shutdown hanging --- sleekxmpp/xmlstream/scheduler.py | 1 + 1 file changed, 1 insertion(+) (limited to 'sleekxmpp/xmlstream') 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() -- cgit v1.2.3