mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-09 17:39:04 +00:00
fix client count so that result is zero when all clients have left
This commit is contained in:
parent
8270c14d86
commit
f13e66b453
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ module.exports = Router =
|
|||
|
||||
client.on "disconnect", () ->
|
||||
metrics.inc('socket-io.disconnect')
|
||||
metrics.gauge('socket-io.clients', io.sockets.clients()?.length)
|
||||
metrics.gauge('socket-io.clients', io.sockets.clients()?.length - 1)
|
||||
WebsocketController.leaveProject io, client, (err) ->
|
||||
if err?
|
||||
Router._handleError null, err, client, "leaveProject"
|
||||
|
|
Loading…
Add table
Reference in a new issue