forked from microsoft/react-native-macos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure map of RCTInspectorPackagerConnectionProtocol is cleared when …
…React is destroyed Summary: There's a potential race between the static IInspector C++ instance being deallocated and the web socket connections in the RCTInspectorPackagerConnectionProtocol map receiving a message and attempting to call the static IInspector, leading to a crash in debug builds. This ensures that the connections map is cleaned up with React, before the data segment cleanup occurs and destroys the static IInspector instance. ## Changelog [IOS][Fixed] Fixes race condition causing crash in dev builds related to inspector protocol Differential Revision: D63546862
- Loading branch information
1 parent
6eb21ca
commit f1af69d
Showing
3 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters