Browse Source

fix code

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
fe8eafe6ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Networking/NCNetworking.swift

+ 1 - 1
iOSClient/Networking/NCNetworking.swift

@@ -343,7 +343,7 @@ import Photos
                                         
         }) { (account, etag, date, _, allHeaderFields, error, errorCode, errorDescription) in
 
-            self.downloadRequest[fileNameLocalPath] = nil
+            self.downloadRequest.removeValue(forKey:fileNameLocalPath)
 
             if error?.isExplicitlyCancelledError ?? false {