diff --git a/fsl/utils/async.py b/fsl/utils/async.py index 9c4f0aab4c5aec53630195699521007551619674..82b4c14a993cf1946716f0f795d7fb3c82bf67ae 100644 --- a/fsl/utils/async.py +++ b/fsl/utils/async.py @@ -456,6 +456,12 @@ class TaskThread(threading.Thread): except queue.Empty: continue + # Any other error typically indicates + # that this is a daemon thread, and + # the TaskThread object has been GC'd + except: + break + finally: if self.__stop: break