aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/VPN/TunnelsManager.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-11-10 12:25:17 +0530
committerRoopesh Chander <roop@roopc.net>2018-11-10 16:44:28 +0530
commit8e7bfb15ed5c2a4537c18ef512a87d7a73ac9253 (patch)
tree06185f41f4aae38e1400710cb6e5b6680f872d62 /WireGuard/WireGuard/VPN/TunnelsManager.swift
parentVPN: There are no DNS errors to handle in the app now (diff)
downloadwireguard-apple-8e7bfb15ed5c2a4537c18ef512a87d7a73ac9253.tar.xz
wireguard-apple-8e7bfb15ed5c2a4537c18ef512a87d7a73ac9253.zip
TunnelsManager: startDeactivation() need not take a completion handler
Because the completion handler pattern doesn't fit in this case. Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/VPN/TunnelsManager.swift')
-rw-r--r--WireGuard/WireGuard/VPN/TunnelsManager.swift3
1 files changed, 1 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/VPN/TunnelsManager.swift b/WireGuard/WireGuard/VPN/TunnelsManager.swift
index a5e94a8..d07f439 100644
--- a/WireGuard/WireGuard/VPN/TunnelsManager.swift
+++ b/WireGuard/WireGuard/VPN/TunnelsManager.swift
@@ -200,9 +200,8 @@ class TunnelsManager {
tunnel.startActivation(completionHandler: completionHandler)
}
- func startDeactivation(of tunnel: TunnelContainer, completionHandler: @escaping (Error?) -> Void) {
+ func startDeactivation(of tunnel: TunnelContainer) {
if (tunnel.status == .inactive) {
- completionHandler(TunnelActivationError.attemptingDeactivationWhenTunnelIsInactive)
return
}
tunnel.startDeactivation()