From 9b729654f62cefefa043ba296d0d558042a7dda7 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sat, 31 Mar 2018 16:26:19 -0700 Subject: [PATCH] server: remove all pending conn reqs within DisconnectPeer --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 805abbdf..05019aa0 100644 --- a/server.go +++ b/server.go @@ -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