Skip to content

Commit

Permalink
PIA-1852: Disable disconnection through deeplinking (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-said-rehouni authored May 23, 2024
1 parent 73b09c5 commit adaf690
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions PIA VPN/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,7 @@ class AppDelegate: NSObject, UIApplicationDelegate {

// in case it's too early for notification delivery (vc not loaded)
TransientState.shouldDisplayRegionPicker = true

case VPNStatus.connected.rawValue:
if Client.providers.vpnProvider.isVPNConnected {
disconnectAfter(milliseconds: defaultMilliseconds)
}

case VPNStatus.disconnected.rawValue:
if !Client.providers.vpnProvider.isVPNConnected {
connectAfter(milliseconds: defaultMilliseconds)
Expand Down

0 comments on commit adaf690

Please sign in to comment.