mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 23:40:38 +01:00
check error
This commit is contained in:
@@ -76,6 +76,9 @@ function onConnection(socket) {
|
||||
|
||||
function onConnect(socket) {
|
||||
user.exists(socket.uid, function (err, exists) {
|
||||
if (err) {
|
||||
return winston.error(err);
|
||||
}
|
||||
if (socket.uid) {
|
||||
socket.join('uid_' + socket.uid);
|
||||
socket.join('online_users');
|
||||
|
||||
Reference in New Issue
Block a user