mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b5ea49f132
Summary: Oleksandr made the point that making `sDidInit` volatile isn't quite enough because the flag is set at the beginning of the function; it's possible that it will return true while it's still in the process of initializing the bridge. Moving where we set the flag to the end of the function should address the issue. Reviewed By: JoshuaGross Differential Revision: D17770128 fbshipit-source-id: 695d3edc582d9dce1884d8698d400dd147ca5cae