Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Commit

Permalink
Fixed problem with type casting (#513)
Browse files Browse the repository at this point in the history
Resulted in `errMsg = "task cancelled"` even though isCancelled was "0".
  • Loading branch information
GaborWnuk authored and wkh237 committed Sep 12, 2017
1 parent 7fa5761 commit 4205ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNFetchBlobNetwork.m
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ - (void) URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCom
errMsg = [error localizedDescription];
}
NSDictionary * taskSession = [taskTable objectForKey:taskId];
BOOL isCancelled = [taskSession valueForKey:@"isCancelled"];
BOOL isCancelled = [[taskSession valueForKey:@"isCancelled"] boolValue];
if(isCancelled) {
errMsg = @"task cancelled";
}
Expand Down

0 comments on commit 4205ebc

Please sign in to comment.