use diconnected property, not connected

This commit is contained in:
Brian Gough 2020-02-04 11:58:55 +00:00
parent 7380d523d5
commit ebb83e4633

View file

@ -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]