Merge pull request #4198 from si458/patch-1

switch end/close apprelay
This commit is contained in:
Ylian Saint-Hilaire 2022-06-30 10:26:15 -07:00 committed by GitHub
commit 222c96cf50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));
});
}
}