server: remove all pending conn reqs within DisconnectPeer
This commit is contained in:
parent
48982015fe
commit
9b729654f6
@ -1842,7 +1842,7 @@ func (s *server) DisconnectPeer(pubKey *btcec.PublicKey) error {
|
|||||||
|
|
||||||
srvrLog.Infof("Disconnecting from %v", peer)
|
srvrLog.Infof("Disconnecting from %v", peer)
|
||||||
|
|
||||||
//s.cancelConnReqs(pubStr, nil)
|
s.cancelConnReqs(pubStr, nil)
|
||||||
|
|
||||||
// If this peer was formerly a persistent connection, then we'll remove
|
// If this peer was formerly a persistent connection, then we'll remove
|
||||||
// them from this map so we don't attempt to re-connect after we
|
// them from this map so we don't attempt to re-connect after we
|
||||||
|
Loading…
Reference in New Issue
Block a user