File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/messaging/ios/RNFBMessaging Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -163,9 +163,9 @@ - (void)application:(UIApplication *)application
163163 // If app is in background state, register background task to guarantee async queues aren't
164164 // frozen.
165165 sharedInstance.backgroundTaskId = [application beginBackgroundTaskWithExpirationHandler: ^{
166- if (backgroundTaskId != UIBackgroundTaskInvalid) {
167- [application endBackgroundTask: backgroundTaskId];
168- backgroundTaskId = UIBackgroundTaskInvalid;
166+ if (sharedInstance. backgroundTaskId != UIBackgroundTaskInvalid) {
167+ [application endBackgroundTask: sharedInstance. backgroundTaskId];
168+ sharedInstance. backgroundTaskId = UIBackgroundTaskInvalid;
169169 }
170170 }];
171171
@@ -246,4 +246,4 @@ - (void)application:(UIApplication *)application
246246 }
247247}
248248
249- @end
249+ @end
You can’t perform that action at this time.
0 commit comments