server: Use Disconnect in handleDonePeerMsg

This commit is contained in:
Javed Khan 2016-11-03 03:20:52 +05:30 committed by Dave Collins
parent b320129e9b
commit a041b4349b

View file

@ -1269,7 +1269,7 @@ func (s *server) handleDonePeerMsg(state *peerState, sp *serverPeer) {
} }
if sp.connReq != nil { 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 // Update the address' last seen time if the peer has acknowledged