mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 10:23:54 +00:00
update + cleanup
- update electron - cleanup unused function calls - close websocket on process end - style fix on splash screen
This commit is contained in:
@@ -128,4 +128,7 @@ export const shutdown = () => {
|
||||
// shutdown OSC Server
|
||||
shutdownOSCServer();
|
||||
// shutdown OSC Client
|
||||
|
||||
// shutdown timer
|
||||
global.timer.shutdown();
|
||||
};
|
||||
|
||||
@@ -81,6 +81,14 @@ export class EventTimer extends Timer {
|
||||
this._listenToConnections();
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Shutdown process
|
||||
*/
|
||||
shutdown() {
|
||||
console.log('Closing socket server');
|
||||
this.io.close();
|
||||
}
|
||||
|
||||
// send current timer
|
||||
broadcastTimer() {
|
||||
this.io.emit('timer', this.getObject());
|
||||
|
||||
Reference in New Issue
Block a user