diff --git a/src/cluster.jl b/src/cluster.jl index 538c2e3..60950b6 100644 --- a/src/cluster.jl +++ b/src/cluster.jl @@ -756,7 +756,7 @@ function check_master_connect() errormonitor( @async begin timeout = worker_timeout() - if timedwait(() -> !haskey(map_pid_wrkr, 1), timeout) === :timed_out + if timedwait(() -> haskey(map_pid_wrkr, 1), timeout) === :timed_out print(stderr, "Master process (id 1) could not connect within $(timeout) seconds.\nexiting.\n") exit(1) end