Skip to content

Commit 570a490

Browse files
authored
Update thread.py
1 parent 796bbbc commit 570a490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ThreadPoolExecutorPlus/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def run(self):
104104
work_item = self._work_queue.get(block=True , timeout = self._keep_alive_time)
105105
except queue.Empty:
106106
# Got lock problem here , may cause dead lock slightly chance , don't know how to fix it.
107-
with self._executor_free_thread_count_lock:
107+
with self._executor._free_thread_count_lock:
108108
if self._executor._free_thread_count > self._executor._min_workers:
109109
self._executor._free_thread_count -= 1
110110
break

0 commit comments

Comments
 (0)