diff options
author | Roopesh Chander <roop@roopc.net> | 2019-03-05 15:24:08 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-03-05 15:29:28 +0530 |
commit | 3afcee04bef286c486cac28fee23b727a6fb1af8 (patch) | |
tree | 2adcd667f3d88f6b1d9106a626868cc52595c538 /WireGuard/WireGuard/UI | |
parent | Importing: Simplify TunnelImporter (diff) | |
download | wireguard-apple-3afcee04bef286c486cac28fee23b727a6fb1af8.tar.xz wireguard-apple-3afcee04bef286c486cac28fee23b727a6fb1af8.zip |
TunnelsManager: addMultiple() should also return the last error
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI')
-rw-r--r-- | WireGuard/WireGuard/UI/TunnelImporter.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/TunnelImporter.swift b/WireGuard/WireGuard/UI/TunnelImporter.swift index 4fabd07..a306a7e 100644 --- a/WireGuard/WireGuard/UI/TunnelImporter.swift +++ b/WireGuard/WireGuard/UI/TunnelImporter.swift @@ -56,7 +56,7 @@ class TunnelImporter { } } dispatchGroup.notify(queue: .main) { - tunnelsManager.addMultiple(tunnelConfigurations: configs.compactMap { $0 }) { numberSuccessful in + tunnelsManager.addMultiple(tunnelConfigurations: configs.compactMap { $0 }) { numberSuccessful, _ in if !configs.isEmpty && numberSuccessful == configs.count { completionHandler?() return |