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