Small bugfix
This commit is contained in:
4
dist/Unity/UnityRunner.js
vendored
4
dist/Unity/UnityRunner.js
vendored
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user