From bd45c7212f7d3e001a7256016c91f704f39bd00c Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Mon, 15 Sep 2014 15:28:11 +0100 Subject: [PATCH] always notify ConnectionMaker of terminated connections otherwise CM might have them stuck in the 'attempting' state --- connection.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/connection.go b/connection.go index d8fdc556..a7dfdfa4 100644 --- a/connection.go +++ b/connection.go @@ -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 {