Skip to content

Commit d3a23ad

Browse files
committed
Fixed realtime.js finishConnection user might be undefined issue
1 parent fa5485c commit d3a23ad

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/realtime.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ var isDisconnectBusy = false;
268268
var disconnectSocketQueue = [];
269269

270270
function finishConnection(socket, note, user) {
271+
if (!socket || !note || !user) return;
271272
note.users[socket.id] = user;
272273
note.socks.push(socket);
273274
note.server.addClient(socket);

0 commit comments

Comments
 (0)