fix(ios) Fixes RCTBridge not being released when JitsiMeet is trying to destroy its bridge on some OS versions

This commit is contained in:
Zoltán Ulrich 2021-10-13 18:44:29 +03:00 committed by Saúl Ibarra Corretgé
parent accdfe4625
commit 9506f3ac3d
3 changed files with 7 additions and 0 deletions

View File

@ -127,6 +127,7 @@
} }
- (void)destroyReactNativeBridge { - (void)destroyReactNativeBridge {
[_bridgeWrapper invalidate];
_bridgeWrapper = nil; _bridgeWrapper = nil;
} }

View File

@ -34,4 +34,6 @@
@property (nonatomic, readonly, strong) RCTBridge *bridge; @property (nonatomic, readonly, strong) RCTBridge *bridge;
- (void)invalidate;
@end @end

View File

@ -33,6 +33,10 @@
return self; return self;
} }
- (void)invalidate {
[_bridge invalidate];
}
#pragma mark helper methods for getting the packager URL #pragma mark helper methods for getting the packager URL
#if DEBUG #if DEBUG