Only signal connection failures; remove successful connections when we see them

This commit is contained in:
Bryan Boreham committed 2014-09-10 16:17:56 +01:00
1 parent 0e23c29cae
commit c6d8623b6f
2 files changed
+16 -7

No files matched your search

+4
View File
@@ -277,6 +277,10 @@ func (conn *LocalConnection) handleShutdown() {
// blank out the forwardChan so that the router processes don't
// try to send any more
conn.stopForwarders()
if conn.remote != nil {
conn.Router.ConnectionMaker.ShutdownConnection(conn.remoteTCPAddr)
}
}
func (conn *LocalConnection) handshake(acceptNewPeer bool) error {