summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/realtime.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/realtime.js b/lib/realtime.js
index 5de3c565..ad4ae215 100644
--- a/lib/realtime.js
+++ b/lib/realtime.js
@@ -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;