Skip to content

Commit dfdffa2

Browse files
authored
Merge pull request react-native-webrtc#24 from jitensuthar/master
Patched issue where RNCallKeep wouldn't execute properly if app is re…
2 parents 74db296 + 0ec378f commit dfdffa2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ios/RNCallKeep/RNCallKeep.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ - (void)dealloc
5858
NSLog(@"[RNCallKeep][dealloc]");
5959
#endif
6060
[[NSNotificationCenter defaultCenter] removeObserver:self];
61+
62+
if (self.callKeepProvider != nil) {
63+
[self.callKeepProvider invalidate];
64+
}
6165
}
6266

6367
// Override method of RCTEventEmitter

0 commit comments

Comments
 (0)