mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user