mirror of
https://github.com/status-im/codimd.git
synced 2025-02-03 15:23:50 +00:00
Fixed realtime.js finishConnection user might be undefined issue
This commit is contained in:
parent
fa5485c185
commit
d3a23ad72f
@ -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…
x
Reference in New Issue
Block a user