summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/realtime.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/realtime.js b/lib/realtime.js
index 25405338..8ff857e1 100644
--- a/lib/realtime.js
+++ b/lib/realtime.js
@@ -478,6 +478,7 @@ function disconnect(socket) {
if (note.server.isDirty) {
updateNote(note, function (err, _note) {
if (err) return logger.error('disconnect note failed: ' + err);
+ delete note.server;
delete notes[noteId];
if (config.debug) {
//logger.info(notes);
@@ -487,6 +488,7 @@ function disconnect(socket) {
}
});
} else {
+ delete note.server;
delete notes[noteId];
}
}