server: remove all pending conn reqs within DisconnectPeer

This commit is contained in:
Olaoluwa Osuntokun 2018-03-31 16:26:19 -07:00
parent 48982015fe
commit 9b729654f6
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

View File

@ -1842,7 +1842,7 @@ func (s *server) DisconnectPeer(pubKey *btcec.PublicKey) error {
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
// them from this map so we don't attempt to re-connect after we