Skip to content

Commit 740a33a

Browse files
authored
1 parent 25da713 commit 740a33a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/cluster.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -690,10 +690,10 @@ function create_worker(manager, wconfig)
690690
end
691691

692692
for wl in wlist
693-
if wl.state === W_CREATED
694-
# wait for wl to join
695-
lock(wl.c_state) do
696-
wait(wl.c_state)
693+
lock(wl.c_state) do
694+
if wl.state === W_CREATED
695+
# wait for wl to join
696+
wait(wl.c_state)
697697
end
698698
end
699699
push!(join_list, wl)

0 commit comments

Comments
 (0)