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 authored and Facebook Github Bot 3 committed 2016-05-07 02:36:28 -07:00
1 parent ff431734a4
commit c6d3ca858e
1 file changed
+2 -3
+2 -3
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(