mirror of
https://github.com/status-im/codimd.git
synced 2025-02-17 08:57:19 +00:00
Try to solve potential memory leaks
This commit is contained in:
parent
a7773be949
commit
858b30c20c
@ -330,6 +330,8 @@ var disconnectSocketQueue = [];
|
||||
|
||||
function finishConnection(socket, note, user) {
|
||||
if (!socket || !note || !user) {
|
||||
if (note) delete note;
|
||||
if (user) delete user;
|
||||
connectionSocketQueue.pop();
|
||||
isConnectionBusy = false;
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user