Commit e49f0dbb authored by Carola Nitz's avatar Carola Nitz

VLCDropboxController: make sure we really have a networkerror when we handle the error

(cherry picked from commit d896fea2)
parent 69a529a6
Pipeline #191 passed with stage
in 0 seconds
......@@ -239,9 +239,9 @@
_downloadInProgress = NO;
[self _triggerNextDownload];
if (!result) {
if (networkError) {
APLog(@"downloadFile failed with network error %li and error tag %li", (long)networkError.statusCode, (long)networkError.tag);
[self _handleError:[NSError errorWithDomain:networkError.description code:networkError.statusCode.integerValue userInfo:nil]];
[self _handleError:networkError.nsError];
}
}] setProgressBlock:^(int64_t bytesWritten, int64_t totalBytesWritten, int64_t totalBytesExpectedToWrite) {
if ((_lastStatsUpdate > 0 && ([NSDate timeIntervalSinceReferenceDate] - _lastStatsUpdate > .5)) || _lastStatsUpdate <= 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment