Update app/src/index.ts

Co-authored-by: Jeffrey Morgan <251292+jmorganca@users.noreply.github.com>
This commit is contained in:
hoyyeva 2023-07-21 16:52:20 -04:00 committed by Eva Ho
parent 734892f1e2
commit b08c4ca2bd

View file

@ -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}`)
logger.error(`Server exited with code: ${code}`)
setTimeout(server, 3000)
}
})
app.on('before-quit', () => {