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) => {
|
proc.on('exit', (code, signal) => {
|
||||||
if (!code) {
|
logger.error(`Server exited with code: ${code}`)
|
||||||
logger.info('Server has stopped.')
|
setTimeout(server, 3000)
|
||||||
setTimeout(server, 5000)
|
|
||||||
} else {
|
|
||||||
logger.error(`Server exited with code: ${code}, signal: ${signal}`)
|
|
||||||
setTimeout(server, 3000)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
app.on('before-quit', () => {
|
app.on('before-quit', () => {
|
||||||
|
|
Loading…
Reference in a new issue