summaryrefslogtreecommitdiff
path: root/lib/realtime.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/realtime.js')
-rw-r--r--lib/realtime.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/realtime.js b/lib/realtime.js
index d0db6072..a732711a 100644
--- a/lib/realtime.js
+++ b/lib/realtime.js
@@ -394,10 +394,13 @@ function startConnection(socket) {
//find or new note
Note.findOrNewNote(notename, owner, function (err, note) {
if (err) {
- responseError(res, "404", "Not Found", "oops.");
+ socket.emit('info', {
+ code: 404
+ });
+ socket.disconnect(true);
clearSocketQueue(connectionSocketQueue, socket);
isConnectionBusy = false;
- return;
+ return logger.error(err);
}
var body = LZString.decompressFromBase64(data.rows[0].content);