瀏覽代碼

fix cancel download

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 3 年之前
父節點
當前提交
bee00d064b
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      iOSClient/Utility/ParallelWorker.swift

+ 2 - 0
iOSClient/Utility/ParallelWorker.swift

@@ -56,6 +56,8 @@ class ParallelWorker {
             hud.detailTextLabel.text = NSLocalizedString("_tap_to_cancel_", comment: "")
             hud.tapOnHUDViewBlock = { hud in
                 self.isCancelled = true
+                // Cancel all download
+                NCNetworking.shared.cancelAllDownloadTransfer()
                 hud.dismiss()
             }
             self.hud = hud