mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-20 10:00:41 +00:00
Merge pull request #2272 from karalabe/fix-premature-downloader-exit
eth/downloader: fix premature exit before notifying all part fetchers
This commit is contained in:
commit
b1c1d09f83
1 changed files with 3 additions and 1 deletions
|
|
@ -1263,9 +1263,11 @@ func (d *Downloader) fetchHeaders(p *peer, td *big.Int, from uint64) error {
|
|||
case ch <- false:
|
||||
case <-d.cancelCh:
|
||||
}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
if !cont {
|
||||
return nil
|
||||
}
|
||||
// Queue not yet full, fetch the next batch
|
||||
from += uint64(len(headers))
|
||||
getHeaders(from)
|
||||
|
|
|
|||
Loading…
Reference in a new issue