make scheduler thread a daemon to prevent shutdown hanging

This commit is contained in:
Thom Nichols 2010-06-25 16:30:45 -04:00
parent bf2bf29fc6
commit d22f6a2aa5

View file

@ -41,6 +41,7 @@ class Scheduler(object):
def process(self, threaded=True): def process(self, threaded=True):
if threaded: if threaded:
self.thread = threading.Thread(name='shedulerprocess', target=self._process) self.thread = threading.Thread(name='shedulerprocess', target=self._process)
self.thread.daemon = True
self.thread.start() self.thread.start()
else: else:
self._process() self._process()