check error

v1.18.x
Baris Usakli 8 years ago
parent e2b40ddf34
commit 0d0ea0977f

@ -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');

Loading…
Cancel
Save