From 0d0ea0977f630d1e79a45d4fb4087748db6d67b5 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Wed, 23 Aug 2017 15:29:27 -0400 Subject: [PATCH] check error --- src/socket.io/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/socket.io/index.js b/src/socket.io/index.js index c2615e281d..228d4ca287 100644 --- a/src/socket.io/index.js +++ b/src/socket.io/index.js @@ -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');