Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(cherry picked from commit 740a33a)
  • Loading branch information
vchuravy authored and KristofferC committed Jul 26, 2021
1 parent 085d6f5 commit b14100c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cluster.jl
Original file line number Diff line number Diff line change
Expand Up @@ -690,10 +690,10 @@ function create_worker(manager, wconfig)
end

for wl in wlist
if wl.state === W_CREATED
# wait for wl to join
lock(wl.c_state) do
wait(wl.c_state)
lock(wl.c_state) do
if wl.state === W_CREATED
# wait for wl to join
wait(wl.c_state)
end
end
push!(join_list, wl)
Expand Down

0 comments on commit b14100c

Please sign in to comment.