From 5b322cedfb45b45bc17375a18c190a64e402b027 Mon Sep 17 00:00:00 2001 From: Cyrix126 Date: Wed, 24 Jul 2024 11:21:11 +0200 Subject: [PATCH] fix: possible hang when p2pool restart --- src/helper/p2pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper/p2pool.rs b/src/helper/p2pool.rs index 1b03d93..abdf78e 100644 --- a/src/helper/p2pool.rs +++ b/src/helper/p2pool.rs @@ -163,7 +163,7 @@ impl Helper { let path = path.to_path_buf(); // This thread lives to wait, start p2pool then die. thread::spawn(move || { - while lock2!(helper, p2pool).is_alive() { + while lock2!(helper, p2pool).state != ProcessState::Waiting { warn!("P2Pool | Want to restart but process is still alive, waiting..."); sleep!(1000); }