macOS: Attempt to remove keychain item only if verified
This commit is contained in:
parent
ae553ff316
commit
d8d18fcb3d
|
@ -245,7 +245,9 @@ class TunnelsManager {
|
|||
|
||||
func remove(tunnel: TunnelContainer, completionHandler: @escaping (TunnelsManagerError?) -> Void) {
|
||||
let tunnelProviderManager = tunnel.tunnelProvider
|
||||
if tunnel.isTunnelConfigurationAvailableInKeychain {
|
||||
(tunnelProviderManager.protocolConfiguration as? NETunnelProviderProtocol)?.destroyConfigurationReference()
|
||||
}
|
||||
|
||||
tunnelProviderManager.removeFromPreferences { [weak self] error in
|
||||
guard error == nil else {
|
||||
|
|
Loading…
Reference in New Issue