mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-04 23:37:19 +00:00
use diconnected property, not connected
This commit is contained in:
parent
7380d523d5
commit
ebb83e4633
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ module.exports = WebsocketLoadBalancer =
|
|||
, (client, cb) ->
|
||||
Utils.getClientAttributes client, ['is_restricted_user'], (err, {is_restricted_user}) ->
|
||||
return cb(err) if err?
|
||||
if !client.connected
|
||||
if client.disconnected
|
||||
logger.warn {channel:channel, client: client.id}, "skipping emit, client not connected"
|
||||
return cb()
|
||||
if !seen[client.id]
|
||||
|
|
Loading…
Reference in a new issue