eth: fix shutdown regression to abort downloads, not just cancel

This commit is contained in:
Péter Szilágyi
2020-04-27 11:22:15 +03:00
parent 1aa83290f5
commit b0bbd47185
2 changed files with 3 additions and 2 deletions

View File

@ -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