Skip to content

Commit 29f6eb6

Browse files
IanButterworthJamesWrigley
authored andcommitted
fix inverted timedwait logic
1 parent 4f836ad commit 29f6eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cluster.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ function check_master_connect()
786786
errormonitor(
787787
Threads.@spawn begin
788788
timeout = worker_timeout()
789-
if timedwait(() -> !haskey(map_pid_wrkr, 1), timeout) === :timed_out
789+
if timedwait(() -> haskey(map_pid_wrkr, 1), timeout) === :timed_out
790790
print(stderr, "Master process (id 1) could not connect within $(timeout) seconds.\nexiting.\n")
791791
exit(1)
792792
end

0 commit comments

Comments
 (0)