Remove item from provider managers on delete.

This commit is contained in:
Jeroen Leenarts 2018-09-05 20:25:32 +02:00
parent 676bf6c312
commit 989117a14c
1 changed files with 1 additions and 0 deletions

View File

@ -427,6 +427,7 @@ extension AppCoordinator: TunnelsTableViewControllerDelegate {
os_log("error removing preferences: %{public}@", log: Log.general, type: .error, error.localizedDescription) os_log("error removing preferences: %{public}@", log: Log.general, type: .error, error.localizedDescription)
return return
} }
self.providerManagers?.removeAll { $0 == manager }
os_log("removed preferences", log: Log.general, type: .info) os_log("removed preferences", log: Log.general, type: .info)
} }
} }