Fixing Prometheus indicator

This commit is contained in:
David Négrier 2020-06-09 13:53:33 +02:00
parent c46b70236b
commit 68dfed5fba
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ export class IoSocketController {
}
//user leave previous room
Client.leave(Client.roomId);
this.nbClientsPerRoomGauge.inc({ host: os.hostname(), room: Client.roomId });
this.nbClientsPerRoomGauge.dec({ host: os.hostname(), room: Client.roomId });
delete Client.roomId;
}
}