eth: fix shutdown regression to abort downloads, not just cancel
This commit is contained in:
@ -222,7 +222,7 @@ func (cs *chainSyncer) loop() {
|
||||
|
||||
case <-cs.pm.quitSync:
|
||||
if cs.doneCh != nil {
|
||||
cs.pm.downloader.Cancel()
|
||||
cs.pm.downloader.Terminate() // Double term is fine, Cancel would block until queue is emptied
|
||||
<-cs.doneCh
|
||||
}
|
||||
return
|
||||
|
Reference in New Issue
Block a user