Small bugfix

This commit is contained in:
2025-10-24 16:21:04 +02:00
parent 02391f813b
commit 7ce9003621
21 changed files with 601 additions and 10 deletions

View File

@@ -54,6 +54,7 @@ var LOG_OUTPUT = !process.argv.includes('--no-output-log');
var UnityRunner = /** @class */ (function () {
function UnityRunner(Main) {
this.message = 'Awaiting startup delay...';
this.bootTime = Date.now();
this.startTime = null;
this.output = { current: [], last: [] };
this.restartTriggered = false;
@@ -98,6 +99,8 @@ var UnityRunner = /** @class */ (function () {
this.error = error;
this.state = state;
this.broadcastState();
if (error != null)
this._Main.Twilio.sendError('UnityRunner', error);
this.output.current.push("[".concat(new Date().toLocaleTimeString('nl-NL'), "] [System] [").concat(state, "] ").concat(message !== null && message !== void 0 ? message : error));
if (state == 'PROBLEM' || state == 'STOPPED')
console.warn(PREFIX, message !== null && message !== void 0 ? message : error);
@@ -300,6 +303,7 @@ var UnityRunner = /** @class */ (function () {
((_b = _this.process) === null || _b === void 0 ? void 0 : _b.exitCode) != null ||
_this.restartTriggered)
return;
_this._Main.Twilio.resetError('UnityRunner');
_this.setInfo('Running', '', 'RUNNING');
_this._Main.UnityWebSocket.connect();
}, 5000);