mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-11 13:34:26 +00:00
CI fix handleDisconnect (pubsub)
This commit is contained in:
parent
9b8b159abb
commit
f9e0a1f069
@ -62,9 +62,8 @@ type
|
||||
method handleDisconnect*(p: PubSub, peer: PubSubPeer) {.base.} =
|
||||
## handle peer disconnects
|
||||
##
|
||||
if peer.id in p.peers:
|
||||
if not isNil(peer.peerInfo) and peer.id in p.peers:
|
||||
trace "deleting peer", peer = peer.id
|
||||
p.peers[peer.id] = nil
|
||||
p.peers.del(peer.id)
|
||||
|
||||
# metrics
|
||||
|
Loading…
x
Reference in New Issue
Block a user