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();
|
||||
}
|
||||
|
||||
var prs = proxyRoutes.slice();
|
||||
function proxyWs() {
|
||||
var proxyRoute = proxyRoutes.shift();
|
||||
var proxyRoute = prs.shift();
|
||||
if (!proxyRoute) {
|
||||
socket.end();
|
||||
return;
|
||||
}
|
||||
proxyRoute.ws(req, socket, head, proxyWs);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue