server: properly close TCP connection when duplicate req detected

This commit is contained in:
Olaoluwa Osuntokun 2017-01-23 20:32:49 -08:00
parent 3ec4eeb5e2
commit 318cfb0080
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -459,6 +459,7 @@ func (s *server) outboundPeerConnected(connReq *connmgr.ConnReq, conn net.Conn)
"already connected, dropping conn",
nodePub.SerializeCompressed())
s.connMgr.Remove(connReq.ID())
conn.Close()
return
}