Skip to content

Commit

Permalink
Merge pull request #4615 from eval-exec/exec/exit-blockdownload-if-Bl…
Browse files Browse the repository at this point in the history
…ockFetchCMD-dropped

Do not start `BlockDownload` thread if ckb has received exit signal
  • Loading branch information
chenyukang authored Aug 27, 2024
2 parents 6ee85c3 + e48f664 commit 7304ea7
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 7304ea7

Please sign in to comment.