Skip to content

Commit 4205ebc

Browse files
GaborWnukwkh237
authored andcommitted
Fixed problem with type casting (#513)
Resulted in `errMsg = "task cancelled"` even though isCancelled was "0".
1 parent 7fa5761 commit 4205ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNFetchBlobNetwork.m

+1-1
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)