Skip to content

Node.js based forum software built for the modern web

check error

Baris Usakli0d0ea0977f63
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');