Skip to content

Commit

Permalink
Do not start BlockDownload thread if ckb has received exit signal
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Aug 26, 2024
1 parent 6a2aa00 commit 0522ab1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sync/src/synchronizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,11 @@ impl Synchronizer {
return;
}

if ckb_stop_handler::has_received_stop_signal() {
info!("received stop signal, stop find_blocks_to_fetch");
return;
}

let unverified_tip = self.shared.active_chain().unverified_tip_number();

let disconnect_list = {
Expand Down

0 comments on commit 0522ab1

Please sign in to comment.