From a041b4349bbc6e8bd956e1fb7db04697e7aeddef Mon Sep 17 00:00:00 2001 From: Javed Khan Date: Thu, 3 Nov 2016 03:20:52 +0530 Subject: [PATCH] server: Use Disconnect in handleDonePeerMsg --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 4a9fec48..d111058c 100644 --- a/server.go +++ b/server.go @@ -1269,7 +1269,7 @@ func (s *server) handleDonePeerMsg(state *peerState, sp *serverPeer) { } if sp.connReq != nil { - s.connManager.Remove(sp.connReq.ID()) + s.connManager.Disconnect(sp.connReq.ID()) } // Update the address' last seen time if the peer has acknowledged