Try to solve potential memory leaks
This commit is contained in:
@@ -330,6 +330,8 @@ var disconnectSocketQueue = [];
|
|||||||
|
|
||||||
function finishConnection(socket, note, user) {
|
function finishConnection(socket, note, user) {
|
||||||
if (!socket || !note || !user) {
|
if (!socket || !note || !user) {
|
||||||
|
if (note) delete note;
|
||||||
|
if (user) delete user;
|
||||||
connectionSocketQueue.pop();
|
connectionSocketQueue.pop();
|
||||||
isConnectionBusy = false;
|
isConnectionBusy = false;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user