bugfix: wrong context

small bugfix on clients indicator
This commit is contained in:
cv
2021-04-22 22:35:45 +02:00
parent 13cc237c5c
commit 4d1e4e4ebf
+2 -2
View File
@@ -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 ***/