mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
fixed disconnect check
This commit is contained in:
@@ -116,7 +116,7 @@ Sockets.init = function(server) {
|
||||
|
||||
socket.on('disconnect', function() {
|
||||
|
||||
if (uid && !Sockets.getUserSockets(uid).length <= 1) {
|
||||
if (uid && Sockets.getUserSockets(uid).length <= 1) {
|
||||
db.sortedSetRemove('users:online', uid, function(err) {
|
||||
socketUser.isOnline(socket, uid, function(err, data) {
|
||||
socket.broadcast.emit('user.isOnline', err, data);
|
||||
|
||||
Reference in New Issue
Block a user