소스 검색

fix cancel download

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 년 전
부모
커밋
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