mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-07 22:40:55 +08:00
Move cleanup back to destructor
Reviewed By: javache Differential Revision: D5697611 fbshipit-source-id: e8bce63aec02d08421eea52b20343576e914e5aa
This commit is contained in:
committed by
Facebook Github Bot
parent
79fdb91bb7
commit
f266ab9bac
@@ -329,7 +329,6 @@ public class CatalystInstanceImpl implements CatalystInstance {
|
||||
UiThreadUtil.runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
quitQueuesSynchronous();
|
||||
mHybridData.resetNative();
|
||||
// Kill non-UI threads from UI thread.
|
||||
getReactQueueConfiguration().destroy();
|
||||
@@ -343,8 +342,6 @@ public class CatalystInstanceImpl implements CatalystInstance {
|
||||
Systrace.unregisterListener(mTraceListener);
|
||||
}
|
||||
|
||||
private native void quitQueuesSynchronous();
|
||||
|
||||
@Override
|
||||
public boolean isDestroyed() {
|
||||
return mDestroyed;
|
||||
|
||||
Reference in New Issue
Block a user