瀏覽代碼

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

Ben Hsieh 7 年之前
父節點
當前提交
cc4634447a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      ios/RNFetchBlobNetwork.m

+ 2
- 1
ios/RNFetchBlobNetwork.m 查看文件

@@ -298,7 +298,8 @@ NSOperationQueue *taskQueue;
298 298
     UIBackgroundTaskIdentifier tid = [app beginBackgroundTaskWithName:taskId expirationHandler:^{
299 299
         NSLog([NSString stringWithFormat:@"session %@ expired", taskId ]);
300 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
 }