mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
trie prefetcher: only nil subfetcher tasks in subfetcher loop
This commit is contained in:
parent
398ea0a982
commit
194d403e8e
1 changed files with 0 additions and 1 deletions
|
|
@ -252,7 +252,6 @@ func (sf *subfetcher) wait() {
|
|||
return // already exiting
|
||||
}
|
||||
sf.closing = true
|
||||
sf.tasks = nil
|
||||
sf.lock.Unlock()
|
||||
// Notify the prefetcher. The wake-chan is buffered, so this is async.
|
||||
sf.wake <- false
|
||||
|
|
|
|||
Loading…
Reference in a new issue