summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2020-07-21 17:26:26 +0300
committerAndrej Mihajlov <and@mullvad.net>2020-07-22 18:35:43 +0300
commit4919a47b708ea16bdf408706bbdd3daed83c17a0 (patch)
treec62460e5c4bcba4a95dda5474f61576fc7bc071e
parentefcd0d08dea67df8917677332362aa54b1e7cf87 (diff)
downloadmullvadvpn-4919a47b708ea16bdf408706bbdd3daed83c17a0.tar.xz
mullvadvpn-4919a47b708ea16bdf408706bbdd3daed83c17a0.zip
Fix: forgot to call resume() on relays download task
-rw-r--r--ios/MullvadVPN/RelayCache.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/ios/MullvadVPN/RelayCache.swift b/ios/MullvadVPN/RelayCache.swift
index 12aa5dc216..8dced2154b 100644
--- a/ios/MullvadVPN/RelayCache.swift
+++ b/ios/MullvadVPN/RelayCache.swift
@@ -227,6 +227,8 @@ class RelayCache {
switch taskResult {
case .success(let newDownloadTask):
downloadTask = newDownloadTask
+ newDownloadTask.resume()
+
case .failure(let restError):
restError.logChain(message: "Failed to create a REST request for updating relays", log: .default)
downloadTask = nil