mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core/state/snapshot: fix leaking goroutines during state tests execution
This commit is contained in:
parent
510b6f90db
commit
25e487e679
1 changed files with 5 additions and 2 deletions
|
|
@ -257,6 +257,9 @@ func (dl *diskLayer) generate(stats *generatorStats) {
|
||||||
dl.lock.Unlock()
|
dl.lock.Unlock()
|
||||||
|
|
||||||
// Someone will be looking for us, wait it out
|
// Someone will be looking for us, wait it out
|
||||||
abort := <-dl.genAbort
|
select {
|
||||||
abort <- nil
|
case abort := <-dl.genAbort:
|
||||||
|
abort <- nil
|
||||||
|
default:
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue