mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-17 13:36:37 +00:00
eth/downloader: fix error aggregator (#27217)
This commit is contained in:
parent
ffda2c64c4
commit
79a57d49cb
1 changed files with 5 additions and 2 deletions
|
|
@ -663,8 +663,11 @@ func (d *Downloader) spawnSync(fetchers []func() error) error {
|
||||||
// it has processed the queue.
|
// it has processed the queue.
|
||||||
d.queue.Close()
|
d.queue.Close()
|
||||||
}
|
}
|
||||||
if err = <-errc; err != nil && err != errCanceled {
|
if got := <-errc; got != nil {
|
||||||
break
|
err = got
|
||||||
|
if got != errCanceled {
|
||||||
|
break // receive a meaningful error, bubble it up
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
d.queue.Close()
|
d.queue.Close()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue