Fix undefined websocket port

Fixes #889

// FREEBIE
pull/749/head
lilia 9 years ago
parent edd6f58539
commit 2b210b3fcd

@ -37482,7 +37482,9 @@ function PortManager(ports) {
PortManager.prototype = {
constructor: PortManager,
getPort: function() {
return this.ports[this.idx++];
var port = this.ports[this.idx];
this.idx = (this.idx + 1) % this.ports.length;
return port;
}
};

@ -10,7 +10,9 @@ function PortManager(ports) {
PortManager.prototype = {
constructor: PortManager,
getPort: function() {
return this.ports[this.idx++];
var port = this.ports[this.idx];
this.idx = (this.idx + 1) % this.ports.length;
return port;
}
};

Loading…
Cancel
Save