don't empty the real array, duh
This commit is contained in:
parent
3aa1085008
commit
0047ae69f4
|
@ -202,10 +202,12 @@ module.exports.create = function (deps, conf, greenlockMiddleware) {
|
||||||
socket.end();
|
socket.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var prs = proxyRoutes.slice();
|
||||||
function proxyWs() {
|
function proxyWs() {
|
||||||
var proxyRoute = proxyRoutes.shift();
|
var proxyRoute = prs.shift();
|
||||||
if (!proxyRoute) {
|
if (!proxyRoute) {
|
||||||
socket.end();
|
socket.end();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
proxyRoute.ws(req, socket, head, proxyWs);
|
proxyRoute.ws(req, socket, head, proxyWs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue