diff options
author | Tom Nichols <tmnichols@gmail.com> | 2010-06-28 11:04:18 -0400 |
---|---|---|
committer | Tom Nichols <tmnichols@gmail.com> | 2010-06-28 11:04:18 -0400 |
commit | e8d37b409c0e29ebb6dcfac2651d5cedc07af965 (patch) | |
tree | b13c5f3fa6b75f089693c49915b3bc794c0dc982 /sleekxmpp/xmlstream | |
parent | 898f96f26553f7702df20fd04fc7ae9befc72109 (diff) | |
download | slixmpp-e8d37b409c0e29ebb6dcfac2651d5cedc07af965.tar.gz slixmpp-e8d37b409c0e29ebb6dcfac2651d5cedc07af965.tar.bz2 slixmpp-e8d37b409c0e29ebb6dcfac2651d5cedc07af965.tar.xz slixmpp-e8d37b409c0e29ebb6dcfac2651d5cedc07af965.zip |
make the scheduler a daemon thread to prevent hanging when the main thread exits.
Diffstat (limited to 'sleekxmpp/xmlstream')
-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() |