mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 22:59:27 +00:00
fix: possible hang when p2pool restart
Some checks are pending
CI / ci (macos-latest) (push) Waiting to run
CI / ci (ubuntu-latest) (push) Waiting to run
Rust / fmt (push) Waiting to run
Rust / test (macos-latest) (push) Waiting to run
Rust / test (ubuntu-latest) (push) Waiting to run
Rust / typo (push) Waiting to run
Rust / clippy (macos-latest) (push) Waiting to run
Rust / clippy (ubuntu-latest) (push) Waiting to run
Rust / check (macos-latest) (push) Waiting to run
Rust / check (ubuntu-latest) (push) Waiting to run
Rust / doc (macos-latest) (push) Waiting to run
Rust / doc (ubuntu-latest) (push) Waiting to run
Typo / typo (push) Waiting to run
Some checks are pending
CI / ci (macos-latest) (push) Waiting to run
CI / ci (ubuntu-latest) (push) Waiting to run
Rust / fmt (push) Waiting to run
Rust / test (macos-latest) (push) Waiting to run
Rust / test (ubuntu-latest) (push) Waiting to run
Rust / typo (push) Waiting to run
Rust / clippy (macos-latest) (push) Waiting to run
Rust / clippy (ubuntu-latest) (push) Waiting to run
Rust / check (macos-latest) (push) Waiting to run
Rust / check (ubuntu-latest) (push) Waiting to run
Rust / doc (macos-latest) (push) Waiting to run
Rust / doc (ubuntu-latest) (push) Waiting to run
Typo / typo (push) Waiting to run
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();
|
let path = path.to_path_buf();
|
||||||
// This thread lives to wait, start p2pool then die.
|
// This thread lives to wait, start p2pool then die.
|
||||||
thread::spawn(move || {
|
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...");
|
warn!("P2Pool | Want to restart but process is still alive, waiting...");
|
||||||
sleep!(1000);
|
sleep!(1000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue