Browse Source

Comment out the line which causes IOS app crash when request expired #271

Ben Hsieh 7 years ago
parent
commit
cc4634447a
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      ios/RNFetchBlobNetwork.m

+ 2
- 1
ios/RNFetchBlobNetwork.m View File

298
     UIBackgroundTaskIdentifier tid = [app beginBackgroundTaskWithName:taskId expirationHandler:^{
298
     UIBackgroundTaskIdentifier tid = [app beginBackgroundTaskWithName:taskId expirationHandler:^{
299
         NSLog([NSString stringWithFormat:@"session %@ expired", taskId ]);
299
         NSLog([NSString stringWithFormat:@"session %@ expired", taskId ]);
300
         [expirationTable setObject:task forKey:taskId];
300
         [expirationTable setObject:task forKey:taskId];
301
-        [app endBackgroundTask:tid];
301
+        // comment out this one as it might cause app crash #271
302
+//        [app endBackgroundTask:tid];
302
     }];
303
     }];
303
 
304
 
304
 }
305
 }