Skip to content

Commit 9aa9a18

Browse files
author
garenwang
committed
fix
1 parent 984a65a commit 9aa9a18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

QCloudCOSXML/Classes/Transfer/request/QCloudCOSXMLDownloadObjectRequest.m

+3-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ - (void)startGetObject {
346346
}
347347

348348
if(error){
349-
[self calculateCrc64:self.downloadingTempURL fileSize:currentTotalBytesDownload + strongSelf.localCacheDownloadOffset];
349+
if (self.enablePartCrc64) {
350+
[self calculateCrc64:self.downloadingTempURL fileSize:currentTotalBytesDownload + strongSelf.localCacheDownloadOffset];
351+
}
350352
NSMutableArray *tasks = [dic[@"downloadedBlocks"] mutableCopy];
351353
if(!tasks){
352354
tasks = [NSMutableArray array];

0 commit comments

Comments
 (0)