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

Commit cc46344

Browse files
committed
Comment out the line which causes IOS app crash when request expired #271
1 parent 90e6b4a commit cc46344

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ios/RNFetchBlobNetwork.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ - (void) sendRequest:(__weak NSDictionary * _Nullable )options
298298
UIBackgroundTaskIdentifier tid = [app beginBackgroundTaskWithName:taskId expirationHandler:^{
299299
NSLog([NSString stringWithFormat:@"session %@ expired", taskId ]);
300300
[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];
302303
}];
303304

304305
}

0 commit comments

Comments
 (0)