Skip to content

Commit 4e9b6e9

Browse files
authored
Merge pull request #1 from GaborWnuk/type-casting-issue
Fixed problem with type casting
2 parents 7fa5761 + 8222ffc commit 4e9b6e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNFetchBlobNetwork.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ - (void) URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCom
505505
errMsg = [error localizedDescription];
506506
}
507507
NSDictionary * taskSession = [taskTable objectForKey:taskId];
508-
BOOL isCancelled = [taskSession valueForKey:@"isCancelled"];
508+
BOOL isCancelled = [[taskSession valueForKey:@"isCancelled"] boolValue];
509509
if(isCancelled) {
510510
errMsg = @"task cancelled";
511511
}

0 commit comments

Comments
 (0)