Skip to content

Commit

Permalink
ord env less aggressive exit (#4186)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph authored Jan 17, 2025
1 parent fe610f6 commit 13dd8d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/subcommand/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,14 @@ bitcoin-cli -datadir={datadir} getblockchaininfo

loop {
if SHUTTING_DOWN.load(atomic::Ordering::Relaxed) {
break Ok(None);
break;
}

thread::sleep(Duration::from_millis(100));
}

thread::sleep(Duration::from_secs(5));

Ok(None)
}
}

0 comments on commit 13dd8d9

Please sign in to comment.