Don't clear queue in ProxyExecutor

Reviewed By: mhorowitz

Differential Revision: D3757216

fbshipit-source-id: 5adda2dcdfb438b65fe668c52e0d2e35705eed9f
This commit is contained in:
Alexander Blom 2016-08-24 03:42:45 -07:00 committed by Facebook Github Bot 5
parent a9a51b2d21
commit b4999fca0d

View File

@ -78,7 +78,8 @@ void ProxyExecutor::loadApplicationScript(
loadApplicationScript(
m_executor.get(),
jni::make_jstring(sourceURL).get());
executeJSCallWithProxy(m_executor.get(), "flushedQueue", std::vector<folly::dynamic>());
// We can get pending calls here to native but the queue will be drained when
// we launch the application.
}
void ProxyExecutor::setJSModulesUnbundle(std::unique_ptr<JSModulesUnbundle>) {