good morning!!!!

Skip to content
Snippets Groups Projects
Commit f2612ac9 authored by Gary Rong's avatar Gary Rong Committed by Péter Szilágyi
Browse files

les: short circuit in the unregister if peer is not registered (#19644)

parent 58497f46
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,11 @@ func (f *freeClientPool) disconnect(address string) {
if f.closed {
return
}
// Short circuit if the peer hasn't been registered.
e := f.addressMap[address]
if e == nil {
return
}
now := f.clock.Now()
if !e.connected {
log.Debug("Client already disconnected", "address", address)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment