From 2c2ffeed3b227d278b71373a2c142436faa93c13 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauld.mccarthy@gmail.com> Date: Thu, 30 Jun 2016 13:45:51 +0100 Subject: [PATCH] Async TaskThread absorbs errors (typically raised on shutdown). --- fsl/utils/async.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fsl/utils/async.py b/fsl/utils/async.py index 9c4f0aab4..82b4c14a9 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 -- GitLab