From 7f8a32e9d118c6f7d84d988a6f2462a8a2c9b085 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 3 Jun 2009 00:05:36 +0000 Subject: - Fix SSH tunnels on PPC - Improve general SSH tunnel stability and automatic reconnection on failure - Improve handling of failed SSH tunnel passwords --- Source/CMMCPConnection.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/CMMCPConnection.m') diff --git a/Source/CMMCPConnection.m b/Source/CMMCPConnection.m index b7fc230f..c5e14567 100644 --- a/Source/CMMCPConnection.m +++ b/Source/CMMCPConnection.m @@ -444,7 +444,9 @@ static void forcePingTimeout(int signalNumber); // Restart the tunnel if it dies if (mConnected && newState == SPSSH_STATE_IDLE && currentSSHTunnelState == SPSSH_STATE_CONNECTED) { currentSSHTunnelState = newState; + [connectionTunnel setConnectionStateChangeSelector:nil delegate:nil]; [self reconnect]; + return; } currentSSHTunnelState = newState; -- cgit v1.2.3