Skip to content

Commit

Permalink
Exit BlockDownload thread if BlockFetchCMD sender dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Aug 26, 2024
1 parent 8744829 commit 819db43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sync/src/synchronizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ impl BlockFetchCMD {
recv(self.recv) -> msg => {
if let Ok(cmd) = msg {
self.process_fetch_cmd(cmd)
} else {
info!("BlockFetchCMD sender dropped, BlockDownload exit now");
return;
}
}
recv(stop_signal) -> _ => {
Expand Down

0 comments on commit 819db43

Please sign in to comment.