From e36861ea01c15229c8da53dd599491f6103ef971 Mon Sep 17 00:00:00 2001 From: Geoffrey Goh Date: Tue, 28 Jun 2016 16:35:18 -0700 Subject: [PATCH] Update RestartManager.js --- RestartManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RestartManager.js b/RestartManager.js index 1677f74..00bde29 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;