Skip to content

Commit

Permalink
closes #628
Browse files Browse the repository at this point in the history
  • Loading branch information
pavjacko committed Jan 4, 2021
1 parent 2b4ac07 commit 172d815
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rnv/src/core/engineManager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const registerAllPlatformEngines = async (c) => {
if (registerEngineList.length) {
await Promise.all(registerEngineList);
}

c.runtime.hasAllEnginesRegistered = true;
return true;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/rnv/src/core/taskManager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export const findSuitableTask = async (c, specificTask) => {
// Custom tasks are executed by core engine
logInfo(`Running custom task ${task}`);
} else if (!suitableEngines.length) {
if (!c.platform || c.platform === true) {
if ((!c.platform || c.platform === true) && !c.runtime.hasAllEnginesRegistered) {
// No platform was specified. we have no option other than load all engines and offer platform list next round
await registerAllPlatformEngines(c);
return findSuitableTask(c);
Expand Down

0 comments on commit 172d815

Please sign in to comment.