mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-15 04:13:47 +00:00
bugfix: wrong context
small bugfix on clients indicator
This commit is contained in:
@@ -150,12 +150,12 @@ class EventTimer extends Timer {
|
|||||||
/*** HANDLE DISCONNECT USER ***/
|
/*** HANDLE DISCONNECT USER ***/
|
||||||
/*** ---------------------- ***/
|
/*** ---------------------- ***/
|
||||||
/********************************/
|
/********************************/
|
||||||
socket.on('disconnect', function () {
|
socket.on('disconnect', () => {
|
||||||
this._numClients--;
|
this._numClients--;
|
||||||
console.log(
|
console.log(
|
||||||
`EventTimer: Client disconnected, total now: ${this._numClients}`
|
`EventTimer: Client disconnected, total now: ${this._numClients}`
|
||||||
);
|
);
|
||||||
});
|
})
|
||||||
|
|
||||||
/***************************************/
|
/***************************************/
|
||||||
/*** TIMER STATE GETTERS / SETTERS ***/
|
/*** TIMER STATE GETTERS / SETTERS ***/
|
||||||
|
|||||||
Reference in New Issue
Block a user