From ae05344aa1f3d175b5e455a399ba21593efa4617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Fri, 28 Sep 2018 13:58:10 +0200 Subject: [PATCH] Skip timeout not on channel but on user --- server/handlers/list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/handlers/list.js b/server/handlers/list.js index 265f810a..aeb5617d 100644 --- a/server/handlers/list.js +++ b/server/handlers/list.js @@ -198,7 +198,8 @@ function skip(list, guid, coll, offline, socket) { hash = adminpass; var toCompare = list.error - Functions.checkTimeout("skip", 1, coll, coll, error, true, socket, function() { + var connection_id = Functions.hash_pass(socket.handshake.headers["user-agent"] + socket.handshake.address + socket.handshake.headers["accept-language"]); + Functions.checkTimeout("skip", 1, coll, connection_id, error, true, socket, function() { //db.collection(coll + "_settings").find(function(err, docs){ if(docs !== null && docs.length !== 0)