diff options
author | Roopesh Chander <roop@roopc.net> | 2018-12-13 18:55:20 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-12-13 18:56:07 +0530 |
commit | bf58159d996ba257673cd37e1756c8ddcf060634 (patch) | |
tree | 68cc4228a4cc468a390866fdbd50b32653c08dfd /WireGuard/WireGuard/UI/iOS/MainViewController.swift | |
parent | Logging: Write versions from both app and extension (diff) | |
download | wireguard-apple-bf58159d996ba257673cd37e1756c8ddcf060634.tar.xz wireguard-apple-bf58159d996ba257673cd37e1756c8ddcf060634.zip |
TunnelsManager: Report activation errors through the activationDelegate
Don't report activation errors through completion handlers
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/MainViewController.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/MainViewController.swift | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/MainViewController.swift b/WireGuard/WireGuard/UI/iOS/MainViewController.swift index 6822263..2fc46b2 100644 --- a/WireGuard/WireGuard/UI/iOS/MainViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/MainViewController.swift @@ -62,9 +62,21 @@ class MainViewController: UISplitViewController { } extension MainViewController: TunnelsManagerActivationDelegate { - func tunnelActivationFailed(tunnel: TunnelContainer, error: TunnelsManagerError) { + func tunnelActivationAttemptFailed(tunnel: TunnelContainer, error: TunnelsManagerActivationAttemptError) { ErrorPresenter.showErrorAlert(error: error, from: self) } + + func tunnelActivationAttemptSucceeded(tunnel: TunnelContainer) { + // Nothing to do + } + + func tunnelActivationFailed(tunnel: TunnelContainer, error: TunnelsManagerActivationError) { + ErrorPresenter.showErrorAlert(error: error, from: self) + } + + func tunnelActivationSucceeded(tunnel: TunnelContainer) { + // Nothing to do + } } extension MainViewController { |