switch end/close
close ws not end end http not close
Simon Smith committed
Jun 30, 2022 at 10:48 UTC
c492aae484af50db5060005a0b85af8bc471f180
1 file changed
+2
-2
apprelays.js
+2
-2
@@ -181,7 +181,7 @@ module.exports.CreateWebRelaySession = function (parent, db, req, args, domain,
181
tunnels = null;
182
183
// Close any pending requests
184
- for (var i in pendingRequests) { if (pendingRequests[i][2] == true) { pendingRequests[i][1].end(); } else { pendingRequests[i][1].close(); } }
184
+ for (var i in pendingRequests) { if (pendingRequests[i][2] == true) { pendingRequests[i][1].close(); } else { pendingRequests[i][1].end(); } }
185
186
// Notify of session closure
187
if (obj.onclose) { obj.onclose(obj.userid + '/' + obj.sessionId); }
@@ -2227,4 +2227,4 @@ function checkRelayRights(parent, domain, user, relayNodeId, func) {
2227
parent.GetNodeWithRights(domain, user, relayNodeId, function (node, rights, visible) {
2228
func((node != null) && (rights == 0xFFFFFFFF));
2229
});
2230
-}
\ No newline at end of file
2230
+}