Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
changsanjiang committed Aug 14, 2021
1 parent 468b192 commit 962ddc6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,9 @@ - (void)downloadTask:(NSURLSessionTask *)task didCompleteWithError:(NSError *)er
_retryCount += 1;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(APDownload_RetryAfter * NSEC_PER_SEC)), _queue, ^{
if ( self->_curItem.task.taskIdentifier != task.taskIdentifier ) return;
#ifdef DEBUG
printf("%s.retry: %ld\n", NSStringFromClass(self.class).UTF8String, (long)self->_retryCount);
#endif
[self _resetTask:file]; // retry
});
}
Expand Down

0 comments on commit 962ddc6

Please sign in to comment.