diff --git a/src/node/net/p2p.ml b/src/node/net/p2p.ml index 22ed5dfc0..06c2e5388 100644 --- a/src/node/net/p2p.ml +++ b/src/node/net/p2p.ml @@ -406,7 +406,7 @@ let connect_to_peer config limits my_gid socket (addr, port) push white_listed = Format.asprintf "(%a) connection handler for %a:%d" pp_gid my_gid Ipaddr.pp_hum addr port in - ignore (worker worker_name connect cancel) ; + ignore (worker ~safe:true worker_name ~run:connect ~cancel) ; (* return the canceler *) cancel