Skip to content

Commit

Permalink
fix: code logic not valid (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 authored Jul 14, 2024
1 parent 5ab7fbe commit 58a5ae0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ const forkRun = (runCmdPath, runArgs = [], options = {}) => {
runChild.on('message', onServerReady);
if (runArgs.includes('--keepalive')) {
runChild.once('exit', code => {
if (code !== 0) {
lastBootstrapStatus = false;
}
if (code === CHILD_PROCESS_EXCEPTION_EXIT_CODE) {
output(colors.red('*'.repeat(120)));
output(
Expand All @@ -143,6 +140,8 @@ const forkRun = (runCmdPath, runArgs = [], options = {}) => {
// 只有上一次启动成功了,才继续保活拉起,如果启动就失败了,就停止重启
innerFork(false);
}
} else if (code !== 0) {
lastBootstrapStatus = false;
}
});
}
Expand Down

0 comments on commit 58a5ae0

Please sign in to comment.