mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2025-04-23 14:58:10 +00:00
fix: possible hang when p2pool restart
This commit is contained in:
parent
a401c5202a
commit
5b322cedfb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue