From 3337245f63c596eaad5087dbfe49f2d8a321bad6 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Sat, 27 Jan 2024 21:49:29 +0000 Subject: [PATCH] fix: increase launcher stable check timeout --- launcher/main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/launcher/main.js b/launcher/main.js index 1b09fb949..553ab6d96 100644 --- a/launcher/main.js +++ b/launcher/main.js @@ -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++ @@ -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') {