From d3a23ad72f1cdde4e7b87e8d79c678b27d98b8c2 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sun, 6 Dec 2015 11:24:47 -0600 Subject: Fixed realtime.js finishConnection user might be undefined issue --- lib/realtime.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/realtime.js b/lib/realtime.js index 5018d151..16795cf6 100644 --- a/lib/realtime.js +++ b/lib/realtime.js @@ -268,6 +268,7 @@ var isDisconnectBusy = false; var disconnectSocketQueue = []; function finishConnection(socket, note, user) { + if (!socket || !note || !user) return; note.users[socket.id] = user; note.socks.push(socket); note.server.addClient(socket); -- cgit v1.2.3