From 1191cd07a58a6ae9f617a1e02b7e2117ae4b3495 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Mon, 19 Jul 2021 17:36:58 +0200 Subject: [PATCH] fixup! Merge pull request #38405 from JuliaLang/vc/distributed_ts --- stdlib/Distributed/src/cluster.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stdlib/Distributed/src/cluster.jl b/stdlib/Distributed/src/cluster.jl index 591ce3f850551..52400a129efb4 100644 --- a/stdlib/Distributed/src/cluster.jl +++ b/stdlib/Distributed/src/cluster.jl @@ -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)