diff --git a/RestartManager.js b/RestartManager.js index 1677f7453..00bde298b 100644 --- a/RestartManager.js +++ b/RestartManager.js @@ -34,10 +34,10 @@ const RestartManager = (() => { _restartQueue.push(onlyIfUpdateIsPending); } else { _restartInProgress = true; - log("Restarting app"); if (await NativeCodePush.restartApp(onlyIfUpdateIsPending)) { // The app has already restarted, so there is no need to // process the remaining queued restarts. + log("Restarting app"); return; } @@ -56,4 +56,4 @@ const RestartManager = (() => { }; })(); -module.exports = RestartManager; \ No newline at end of file +module.exports = RestartManager;