diff options
author | Thom Nichols <tmnichols@gmail.com> | 2010-06-25 16:30:45 -0400 |
---|---|---|
committer | Thom Nichols <tmnichols@gmail.com> | 2010-06-25 16:30:45 -0400 |
commit | d22f6a2aa523a5a19b1cb20e99e3091976a461c1 (patch) | |
tree | 683bac4f851f7e03cfba672958d7d87c1c28fa4b | |
parent | bf2bf29fc69fa82d8b0a882c99395ae25b11ab69 (diff) | |
download | slixmpp-d22f6a2aa523a5a19b1cb20e99e3091976a461c1.tar.gz slixmpp-d22f6a2aa523a5a19b1cb20e99e3091976a461c1.tar.bz2 slixmpp-d22f6a2aa523a5a19b1cb20e99e3091976a461c1.tar.xz slixmpp-d22f6a2aa523a5a19b1cb20e99e3091976a461c1.zip |
make scheduler thread a daemon to prevent shutdown hanging
-rw-r--r-- | sleekxmpp/xmlstream/scheduler.py | 1 |
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() |