mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
p2p/enode: close sources added after FairMix shutdown
This commit is contained in:
parent
e3b6d0c86f
commit
b45bc75393
1 changed files with 1 additions and 0 deletions
|
|
@ -356,6 +356,7 @@ func (m *FairMix) AddSource(it Iterator) {
|
|||
defer m.mu.Unlock()
|
||||
|
||||
if m.closed == nil {
|
||||
it.Close()
|
||||
return
|
||||
}
|
||||
m.wg.Add(1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue