mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "eth/downloader: fix error aggregator (#27217)"
This reverts commit 0b42d42091.
This commit is contained in:
parent
e8c96dc2c6
commit
5e43bf95f4
1 changed files with 2 additions and 5 deletions
|
|
@ -663,11 +663,8 @@ 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 got := <-errc; got != nil {
|
if err = <-errc; err != nil && err != errCanceled {
|
||||||
err = got
|
break
|
||||||
if got != errCanceled {
|
|
||||||
break // receive a meaningful error, bubble it up
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
d.queue.Close()
|
d.queue.Close()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue