From c492aae484af50db5060005a0b85af8bc471f180 Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Thu, 30 Jun 2022 10:48:57 +0100 Subject: [PATCH] switch end/close close ws not end end http not close --- apprelays.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apprelays.js b/apprelays.js index 502ec760..68535e9e 100644 --- a/apprelays.js +++ b/apprelays.js @@ -181,7 +181,7 @@ module.exports.CreateWebRelaySession = function (parent, db, req, args, domain, tunnels = null; // Close any pending requests - for (var i in pendingRequests) { if (pendingRequests[i][2] == true) { pendingRequests[i][1].end(); } else { pendingRequests[i][1].close(); } } + for (var i in pendingRequests) { if (pendingRequests[i][2] == true) { pendingRequests[i][1].close(); } else { pendingRequests[i][1].end(); } } // Notify of session closure if (obj.onclose) { obj.onclose(obj.userid + '/' + obj.sessionId); } @@ -2227,4 +2227,4 @@ function checkRelayRights(parent, domain, user, relayNodeId, func) { parent.GetNodeWithRights(domain, user, relayNodeId, function (node, rights, visible) { func((node != null) && (rights == 0xFFFFFFFF)); }); -} \ No newline at end of file +}