Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid duplicate destroy on same thread (#38233)
Summary: Pull Request resolved: #38233 When call ReactHost.destroy multiple times on same thread, the synchronization we have now can not protect us from concurrent issues such as ```ConcurrentModificationException```, to avoid this case this diff checks if ReactInstance has been reset, if so it means an early destroy has been called and we should not destroy again. Changelog: [Android][Changed] - Avoid duplicate destroy on same thread Reviewed By: fkgozali Differential Revision: D47276191 fbshipit-source-id: 2291b89cb980ca762abddb835e703abd095a93b3
- Loading branch information