Skip to content

Commit

Permalink
Update RestartManager.js
Browse files Browse the repository at this point in the history
  • Loading branch information
geof90 authored Jun 28, 2016
1 parent 8624904 commit e36861e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RestartManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -56,4 +56,4 @@ const RestartManager = (() => {
};
})();

module.exports = RestartManager;
module.exports = RestartManager;

0 comments on commit e36861e

Please sign in to comment.