From e8d37b409c0e29ebb6dcfac2651d5cedc07af965 Mon Sep 17 00:00:00 2001 From: Tom Nichols Date: Mon, 28 Jun 2010 11:04:18 -0400 Subject: [PATCH] make the scheduler a daemon thread to prevent hanging when the main thread exits. --- sleekxmpp/xmlstream/scheduler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sleekxmpp/xmlstream/scheduler.py b/sleekxmpp/xmlstream/scheduler.py index 40aaf69..e4df02d 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()