always notify ConnectionMaker of terminated connections

otherwise CM might have them stuck in the 'attempting' state
This commit is contained in:
Matthias Radestock committed 2014-09-15 15:28:11 +01:00
1 parent 8b37e07823
commit bd45c7212f
1 file changed
+1 -3
+1 -3
View File
@@ -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 {