mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 07:10:36 +08:00
Update RestartManager.js
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user