mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-05 07:28:01 +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 ***/
|
||||
/*** ---------------------- ***/
|
||||
/********************************/
|
||||
socket.on('disconnect', function () {
|
||||
socket.on('disconnect', () => {
|
||||
this._numClients--;
|
||||
console.log(
|
||||
`EventTimer: Client disconnected, total now: ${this._numClients}`
|
||||
);
|
||||
});
|
||||
})
|
||||
|
||||
/***************************************/
|
||||
/*** TIMER STATE GETTERS / SETTERS ***/
|
||||
|
||||
Reference in New Issue
Block a user