mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
les: verify existence of peer entry in freeClientPool.disconnect
This commit is contained in:
parent
58497f46bd
commit
d5c3b700f4
1 changed files with 3 additions and 0 deletions
|
|
@ -194,6 +194,9 @@ func (f *freeClientPool) disconnect(address string) {
|
|||
return
|
||||
}
|
||||
e := f.addressMap[address]
|
||||
if e == nil {
|
||||
return
|
||||
}
|
||||
now := f.clock.Now()
|
||||
if !e.connected {
|
||||
log.Debug("Client already disconnected", "address", address)
|
||||
|
|
|
|||
Loading…
Reference in a new issue