mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-12-22 03:00:16 +00:00
make scheduler thread a daemon to prevent shutdown hanging
This commit is contained in:
parent
bf2bf29fc6
commit
d22f6a2aa5
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue