Only signal connection failures; remove successful connections when we see them
This commit is contained in:
1 parent
0e23c29cae
commit
c6d8623b6f
2 files changed
+16
-7
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user