mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added timeout before exiting the process
no issue - IPC communication happens before we trigger process.exit - this is a timing issue - we should give IPC a little time to finish sending the message over to the CLI - wait 100ms before exiting the process
This commit is contained in:
parent
2e9dc30151
commit
8bde199101
2 changed files with 6 additions and 2 deletions
|
@ -133,7 +133,9 @@ const minimalRequiredSetupToStartGhost = (dbState) => {
|
|||
return GhostServer.announceServerStopped(err)
|
||||
.finally(() => {
|
||||
common.logging.error(err);
|
||||
setTimeout(() => {
|
||||
process.exit(-1);
|
||||
}, 100);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
2
index.js
2
index.js
|
@ -41,6 +41,8 @@ ghost().then(function (ghostServer) {
|
|||
return GhostServer.announceServerStopped(err)
|
||||
.finally(() => {
|
||||
common.logging.error(err);
|
||||
setTimeout(() => {
|
||||
process.exit(-1);
|
||||
}, 100);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue