Skip to content

Commit

Permalink
Execute init task on thread pool executor
Browse files Browse the repository at this point in the history
Reviewed By: foghina

Differential Revision: D3522112

fbshipit-source-id: 8a0880d0e7bf3e0bce02c44e8d504f01ab47beb8
  • Loading branch information
lexs authored and Facebook Github Bot 9 committed Jul 6, 2016
1 parent c3f2bba commit c57eb94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ private void recreateReactContextInBackground(
if (mReactContextInitAsyncTask == null) {
// No background task to create react context is currently running, create and execute one.
mReactContextInitAsyncTask = new ReactContextInitAsyncTask();
mReactContextInitAsyncTask.execute(initParams);
mReactContextInitAsyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, initParams);
} else {
// Background task is currently running, queue up most recent init params to recreate context
// once task completes.
Expand Down

0 comments on commit c57eb94

Please sign in to comment.