We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8929b5 commit c1b1d6cCopy full SHA for c1b1d6c
1 file changed
ios/RCTWebRTC/InAppScreenCapturer.m
@@ -108,9 +108,11 @@ - (void)stopCapture {
108
109
- (void)registerAppStateObservers {
110
if (_observingAppState) return;
111
- _observingAppState = YES;
112
113
dispatch_async(dispatch_get_main_queue(), ^{
+ if (self->_observingAppState || !self->_capturing) return;
114
+ self->_observingAppState = YES;
115
+
116
[[NSNotificationCenter defaultCenter] addObserver:self
117
selector:@selector(appDidBecomeActive)
118
name:UIApplicationDidBecomeActiveNotification
0 commit comments