mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
/ask POST, and other fixes
This commit is contained in:
parent
19b8fdc5ab
commit
c6da65ce40
3 changed files with 119 additions and 58 deletions
|
@ -103,6 +103,7 @@ function getAWorker(i, initData) {
|
|||
})
|
||||
|
||||
worker.on('exit', (code) => {
|
||||
// TODO: this is critical, whole server should stop, or child threads should be restarted
|
||||
logger.Log(
|
||||
`[MAIN]: worker #${i} exit code: ${code}`,
|
||||
code === 0 ? logger.GetColor('redbg') : logger.GetColor('green')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue