mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
server: properly close TCP connection when duplicate req detected
This commit is contained in:
parent
3ec4eeb5e2
commit
318cfb0080
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue