From 6cdc05016fce7b50fef6b31e22bd6b803be84521 Mon Sep 17 00:00:00 2001 From: Markus Pettersson Date: Tue, 28 Jan 2025 16:14:00 +0100 Subject: [PATCH] Do not immediately error out in tsm --- .../tunnel_state_machine/connecting_state.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/talpid-core/src/tunnel_state_machine/connecting_state.rs b/talpid-core/src/tunnel_state_machine/connecting_state.rs index ce0785e4f50d..9060787536db 100644 --- a/talpid-core/src/tunnel_state_machine/connecting_state.rs +++ b/talpid-core/src/tunnel_state_machine/connecting_state.rs @@ -139,24 +139,6 @@ impl ConnectingState { retry_attempt, ); - // HACK: Wait for routes to come up. We only need to do this on Android because .. - // If we time out waiting for the appropriate routes to come up, we should tear - // down the newly set-up tunnel and enter the error state, since we can't guarantee - // the tunnel to work properly. - #[cfg(target_os = "android")] - { - // TODO: Investigate if it's a problem to call this function blockingly - //android.wait_for_routes(); - let wait_for_routes: std::result::Result<(), ()> = Err(()); - if let Err(_) = wait_for_routes { - drop(connecting_state); - return ErrorState::enter( - shared_values, - ErrorStateCause::RoutesTimedOut, - ); - } - } - let params = connecting_state.tunnel_parameters.clone(); ( Box::new(connecting_state),