mirror of
https://github.com/clearml/clearml
synced 2025-01-31 00:56:57 +00:00
Fix potential threading issues when setting self.lock to None
This commit is contained in:
parent
e746b3e535
commit
e7f4497e36
@ -263,8 +263,8 @@ class TaskHandler(BufferingHandler):
|
||||
# flush pending logs
|
||||
if not self._task_id:
|
||||
return
|
||||
# avoid deadlocks just skip the lock, we are shutting down anyway
|
||||
self.lock = None
|
||||
# Never null the lock, it might be used by internal Python at some point
|
||||
# self.lock = None
|
||||
self._task_id = None
|
||||
|
||||
# shut down the TaskHandler, from this point onwards. No events will be logged
|
||||
|
Loading…
Reference in New Issue
Block a user