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

Async TaskThread absorbs errors (typically raised on shutdown).

parent 304e3aa6
No related branches found
No related tags found
No related merge requests found
...@@ -456,6 +456,12 @@ class TaskThread(threading.Thread): ...@@ -456,6 +456,12 @@ class TaskThread(threading.Thread):
except queue.Empty: except queue.Empty:
continue continue
# Any other error typically indicates
# that this is a daemon thread, and
# the TaskThread object has been GC'd
except:
break
finally: finally:
if self.__stop: if self.__stop:
break break
......
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