Fixed realtime.js finishConnection user might be undefined issue

This commit is contained in:
Wu Cheng-Han 2015-12-06 11:24:47 -06:00
parent fa5485c185
commit d3a23ad72f

View file

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