mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-09 01:26:36 +00:00
downloader: fixed a race condition for download status
This commit is contained in:
parent
0d536734fe
commit
78e37e98e7
1 changed files with 0 additions and 1 deletions
|
|
@ -293,7 +293,6 @@ out:
|
||||||
d.queue.put(chunk.hashes)
|
d.queue.put(chunk.hashes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
atomic.StoreInt32(&d.downloadingBlocks, 1)
|
|
||||||
} else if len(d.queue.fetching) == 0 {
|
} else if len(d.queue.fetching) == 0 {
|
||||||
// When there are no more queue and no more `fetching`. We can
|
// When there are no more queue and no more `fetching`. We can
|
||||||
// safely assume we're done. Another part of the process will check
|
// safely assume we're done. Another part of the process will check
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue