Small bugfix
This commit is contained in:
@@ -8,12 +8,14 @@ import {
|
||||
import { CameraRunner } from './CameraRunner';
|
||||
import { UnityRunner } from './Unity/UnityRunner';
|
||||
import { UnityWebSocket } from './Unity/UnityWebSocket';
|
||||
import { TwilioHandler } from './Twilio';
|
||||
|
||||
export class Main {
|
||||
dataPath = join(homedir(), 'MorphixProductions', 'NTSHControl');
|
||||
|
||||
ConfigurationManager = new ConfigurationManager(this);
|
||||
WebServer = new WebServer(this);
|
||||
Twilio = new TwilioHandler(this);
|
||||
|
||||
CameraRunner = new CameraRunner(this);
|
||||
UnityRunner = new UnityRunner(this);
|
||||
@@ -24,6 +26,7 @@ export class Main {
|
||||
async start() {
|
||||
await this.ConfigurationManager.load();
|
||||
await this.WebServer.listen();
|
||||
await this.Twilio.load();
|
||||
|
||||
await this.CameraRunner.connect();
|
||||
|
||||
@@ -47,9 +50,14 @@ export class Main {
|
||||
'Failed to reboot CameraRunner:',
|
||||
response.message
|
||||
);
|
||||
this.Twilio.sendError(
|
||||
'CameraRunner',
|
||||
`Failed to reboot CameraRunner: ${response.message}`
|
||||
);
|
||||
resolve(false);
|
||||
} else {
|
||||
console.log('CameraRunner rebooted successfully.');
|
||||
this.Twilio.sendError('CameraRunner', null);
|
||||
resolve(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user