Skip to content

Commit

Permalink
Fixes an issue that's causing the Allow VPN to show up twice when dis… (
Browse files Browse the repository at this point in the history
#2728)

Task/Issue URL: https://app.asana.com/0/1199230911884351/1207210448609392/f

Description

We no longer ask twice to allow the VPN configuration if the user decides to not allow it.
  • Loading branch information
diegoreymendez authored May 1, 2024
1 parent 89a38be commit 398f9b8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,9 @@ final class NetworkProtectionTunnelController: TunnelController, TunnelSessionPr
)
}

await stop()
if await isConnected {
await stop()
}

// Always keep the first error message shown, as it's the more actionable one.
if controllerErrorStore.lastErrorMessage == nil {
Expand Down

0 comments on commit 398f9b8

Please sign in to comment.