diff options
author | Wu Cheng-Han | 2015-12-06 11:24:47 -0600 |
---|---|---|
committer | Wu Cheng-Han | 2015-12-06 11:24:47 -0600 |
commit | d3a23ad72f1cdde4e7b87e8d79c678b27d98b8c2 (patch) | |
tree | db013972e59b01cc25fd9e30a63224c28720e529 | |
parent | fa5485c185bf314dbfcaea72f32ce738b549e0fc (diff) |
Fixed realtime.js finishConnection user might be undefined issue
Diffstat (limited to '')
-rw-r--r-- | lib/realtime.js | 1 |
1 files changed, 1 insertions, 0 deletions
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); |