From 989117a14c44c0c0685a19a432ea1be6761cd039 Mon Sep 17 00:00:00 2001 From: Jeroen Leenarts Date: Wed, 5 Sep 2018 20:25:32 +0200 Subject: [PATCH] Remove item from provider managers on delete. --- WireGuard/Coordinators/AppCoordinator.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/WireGuard/Coordinators/AppCoordinator.swift b/WireGuard/Coordinators/AppCoordinator.swift index c3595c6..0321674 100644 --- a/WireGuard/Coordinators/AppCoordinator.swift +++ b/WireGuard/Coordinators/AppCoordinator.swift @@ -427,6 +427,7 @@ extension AppCoordinator: TunnelsTableViewControllerDelegate { os_log("error removing preferences: %{public}@", log: Log.general, type: .error, error.localizedDescription) return } + self.providerManagers?.removeAll { $0 == manager } os_log("removed preferences", log: Log.general, type: .info) } }