Update app/src/index.ts
Co-authored-by: Jeffrey Morgan <251292+jmorganca@users.noreply.github.com>
This commit is contained in:
parent
734892f1e2
commit
b08c4ca2bd
1 changed files with 2 additions and 7 deletions
|
@ -117,13 +117,8 @@ function server() {
|
|||
|
||||
|
||||
proc.on('exit', (code, signal) => {
|
||||
if (!code) {
|
||||
logger.info('Server has stopped.')
|
||||
setTimeout(server, 5000)
|
||||
} else {
|
||||
logger.error(`Server exited with code: ${code}, signal: ${signal}`)
|
||||
setTimeout(server, 3000)
|
||||
}
|
||||
logger.error(`Server exited with code: ${code}`)
|
||||
setTimeout(server, 3000)
|
||||
})
|
||||
|
||||
app.on('before-quit', () => {
|
||||
|
|
Loading…
Reference in a new issue