Fixed realtime.js finishConnection user might be undefined issue
This commit is contained in:
parent
fa5485c185
commit
d3a23ad72f
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue