aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.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/UI/iOS/TunnelsListTableViewController.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 '')
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift4
1 files changed, 1 insertions, 3 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
index a9d858e..ba61743 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
@@ -287,9 +287,7 @@ extension TunnelsListTableViewController: UITableViewDataSource {
}
}
} else {
- tunnelsManager.startDeactivation(of: tunnel) { [weak s] error in
- s?.showErrorAlert(title: "Deactivation error", message: "Error while bringing down tunnel: \(String(describing: error))")
- }
+ tunnelsManager.startDeactivation(of: tunnel)
}
}
}