Skip to content

Commit

Permalink
Fix race condition for nonblocking resource reallocate
Browse files Browse the repository at this point in the history
Do not check if the thread is still running, as it might have already finished.
  • Loading branch information
WardLT committed Jun 2, 2023
1 parent 93db4e5 commit af6181c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion colmena/thinker/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ def _function():

thr = Thread(target=_function, daemon=True)
thr.start()
assert thr.is_alive(), thr.join()
return True

# Pull nodes from the remaining
Expand Down

0 comments on commit af6181c

Please sign in to comment.