Skip to content

Commit

Permalink
fix: increase launcher stable check timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jan 27, 2024
1 parent eb5da64 commit 3337245
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion launcher/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,12 @@ if (!lock) {
crashTimeout = null
customLog('Companion looks to be stable', 'Application')
restartCounter = 0
}, 5000)
}, 30000)
})

child.on('exit', (code) => {
customLog(`Companion exited with code: ${code}`, 'Application')

if (code === 0) return

restartCounter++
Expand All @@ -834,6 +836,9 @@ if (!lock) {
child.on('stderr', (data) => {
customLog(data.toString())
})
child.on('warn', (data) => {
customLog(data.toString())
})
child.on('message', (data) => {
console.log('Received IPC message', data)
if (data.messageType === 'fatal-error') {
Expand Down

0 comments on commit 3337245

Please sign in to comment.