mirror of
https://github.com/immich-app/immich.git
synced 2026-03-26 20:00:44 +03:00
conditional cronet
This commit is contained in:
@@ -110,6 +110,9 @@ class RemoteImageApiDelegate: NSObject, URLSessionDataDelegate {
|
||||
defer { remove(requestId: requestId) }
|
||||
|
||||
if let error = error {
|
||||
if request.isCancelled || (error as NSError).code == NSURLErrorCancelled {
|
||||
return request.completion(Self.cancelledResult)
|
||||
}
|
||||
return request.completion(.failure(error))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user