summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--talpid-core/src/tunnel_state_machine/connecting_state.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/talpid-core/src/tunnel_state_machine/connecting_state.rs b/talpid-core/src/tunnel_state_machine/connecting_state.rs
index 6c31a08c69..c41fca0b3b 100644
--- a/talpid-core/src/tunnel_state_machine/connecting_state.rs
+++ b/talpid-core/src/tunnel_state_machine/connecting_state.rs
@@ -246,6 +246,17 @@ impl ConnectingState {
use self::EventConsequence::*;
match try_handle_event!(self, self.tunnel_events.poll()) {
+ Ok(TunnelEvent::AuthFailed) => NewState(DisconnectingState::enter(
+ shared_values,
+ (
+ self.close_handle,
+ self.tunnel_close_event,
+ AfterDisconnect::Block(
+ BlockReason::AuthFailed,
+ self.tunnel_parameters.allow_lan,
+ ),
+ ),
+ )),
Ok(TunnelEvent::Up(metadata)) => NewState(ConnectedState::enter(
shared_values,
self.into_connected_state_bootstrap(metadata),