always notify ConnectionMaker of terminated connections
otherwise CM might have them stuck in the 'attempting' state
This commit is contained in:
1 parent
8b37e07823
commit
bd45c7212f
1 file changed
+1
-3
+1
-3
@@ -278,9 +278,7 @@ func (conn *LocalConnection) handleShutdown() {
|
||||
// try to send any more
|
||||
conn.stopForwarders()
|
||||
|
||||
if conn.remote != nil {
|
||||
conn.Router.ConnectionMaker.ConnectionTerminated(conn.remoteTCPAddr)
|
||||
}
|
||||
conn.Router.ConnectionMaker.ConnectionTerminated(conn.remoteTCPAddr)
|
||||
}
|
||||
|
||||
func (conn *LocalConnection) handshake(acceptNewPeer bool) error {
|
||||
|
||||
Reference in new issue
Block a user