fix webrelay timeouting too fast #7102

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458
2025-06-15 14:31:19 +01:00
parent 2b4ab2b122
commit 95759d4022
2 changed files with 13 additions and 11 deletions

View File

@@ -107,7 +107,7 @@ module.exports.CreateWebRelaySession = function (parent, db, req, args, domain,
// Check if any tunnels need to be cleaned up
obj.checkTimeout = function () {
const limit = Date.now() - (1 * 60 * 1000); // This is is 5 minutes before current time
const limit = Date.now() - (5 * 60 * 1000); // This is 5 minutes before current time
// Close any old non-websocket tunnels
const tunnelToRemove = [];