mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 19:27:11 +02:00
online count fixes for cluster
This commit is contained in:
@@ -76,11 +76,7 @@ User.banUser = function(uid, callback) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
var sockets = websockets.getUserSockets(uid);
|
||||
|
||||
for(var i=0; i<sockets.length; ++i) {
|
||||
sockets[i].emit('event:banned');
|
||||
}
|
||||
websockets.in('uid_' + uid).emit('event:banned');
|
||||
|
||||
websockets.logoutUser(uid);
|
||||
callback();
|
||||
|
||||
Reference in New Issue
Block a user