diff options
Diffstat (limited to 'lib/utils/threading.py')
| -rw-r--r-- | lib/utils/threading.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/threading.py b/lib/utils/threading.py index f0c22887..f774dcbe 100644 --- a/lib/utils/threading.py +++ b/lib/utils/threading.py @@ -17,6 +17,7 @@ _default_stop_flag = threading.Event() def check_stop_flag(): + # This getattr() actually looks at the PreviewRenderer instance's stop attribute. if getattr(threading.current_thread(), 'stop', _default_stop_flag).is_set(): debug.log("exiting thread") raise ExitThread() |
