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

task cancelled issue due to improper type casting #513

Merged
merged 2 commits into from
Sep 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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