Skip to content
Snippets Groups Projects
Commit 97f8dda8 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Hack made a bit more specific.

parent e7ba37ec
No related branches found
No related tags found
No related merge requests found
......@@ -150,25 +150,24 @@ class ClearThread(threading.Thread):
(via a call to :func:`clearStatus`).
"""
# http://bugs.python.org/issue14623
#
# When the main thread exits, daemon threads will
# continue to run after the threading module is
# destroyed. Calls to the Event methods can thus
# result in errors.
try:
while True:
self.__vetoEvent .clear()
self.__clearEvent.wait()
self.__clearEvent.clear()
while True:
self.__vetoEvent .clear()
self.__clearEvent.wait()
self.__clearEvent.clear()
# http://bugs.python.org/issue14623
#
# When the main thread exits, daemon threads will
# continue to run after the threading module is
# destroyed. Calls to the Event methods can thus
# result in errors.
try:
if not self.__clearEvent.wait(self.__timeout) and \
not self.__vetoEvent.isSet():
log.debug('Timeout - clearing status')
clearStatus()
except:
pass
except TypeError:
return
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment