Remove item from provider managers on delete.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
b7755b97a3
commit
24623c4ea3
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue