Explorar el Código

Fixed problem with type casting (#513)

Resulted in `errMsg = "task cancelled"` even though isCancelled was "0".
Gabor Wnuk hace 7 años
padre
commit
4205ebc3d1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      ios/RNFetchBlobNetwork.m

+ 1
- 1
ios/RNFetchBlobNetwork.m Ver fichero

@@ -505,7 +505,7 @@ NSOperationQueue *taskQueue;
505 505
         errMsg = [error localizedDescription];
506 506
     }
507 507
     NSDictionary * taskSession = [taskTable objectForKey:taskId];
508
-    BOOL isCancelled = [taskSession valueForKey:@"isCancelled"];
508
+    BOOL isCancelled = [[taskSession valueForKey:@"isCancelled"] boolValue];
509 509
     if(isCancelled) {
510 510
         errMsg = @"task cancelled";
511 511
     }