Update RestartManager.js

This commit is contained in:
Geoffrey Goh
2016-06-28 16:35:18 -07:00
committed by GitHub
parent 8624904cd4
commit e36861ea01

View File

@@ -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;
module.exports = RestartManager;