From c13195bd61d3ac178a660b3d9b4a830e6c4432f8 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Thu, 10 Oct 2024 21:51:28 +0300 Subject: [PATCH] stratum: prevent crash at connections thread --- src/node/stratum.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/stratum.rs b/src/node/stratum.rs index c72ee56..4207a74 100644 --- a/src/node/stratum.rs +++ b/src/node/stratum.rs @@ -716,7 +716,7 @@ fn accept_connections(listen_addr: SocketAddr, let mut rt = Runtime::new().unwrap(); let (task, handle) = abortable(task); rt.spawn(check_stop_state(stop_state, handle)); - rt.block_on(task).unwrap(); + rt.block_on(task).unwrap_or_default(); } async fn check_stop_state(stop_state: Arc, handle: AbortHandle) {