Avoid bounce to same message queue

Reviewed By: astreet

Differential Revision: D3269661

fb-gh-sync-id: b22ea45de9e9ddbe8471f10e9c475a5746aec34e
fbshipit-source-id: b22ea45de9e9ddbe8471f10e9c475a5746aec34e
This commit is contained in:
Alexander Blom
2016-05-07 02:35:06 -07:00
committed by Facebook Github Bot 3
parent ff431734a4
commit c6d3ca858e

View File

@@ -37,9 +37,8 @@ Bridge::~Bridge() {
}
void Bridge::loadApplicationScript(const std::string& script, const std::string& sourceURL) {
runOnExecutorQueue(*m_mainExecutorToken, [=] (JSExecutor* executor) {
executor->loadApplicationScript(script, sourceURL);
});
// TODO(t11144533): Add assert that we are on the correct thread
m_mainExecutor->loadApplicationScript(script, sourceURL);
}
void Bridge::loadApplicationUnbundle(