Skip to content

Commit

Permalink
Do not immediately error out in tsm
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Jan 28, 2025
1 parent 00e7c49 commit 6cdc050
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions talpid-core/src/tunnel_state_machine/connecting_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 6cdc050

Please sign in to comment.