poru 3.7.0 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Player.js +1 -1
- package/src/Poru.js +3 -4
package/package.json
CHANGED
package/src/Player.js
CHANGED
package/src/Poru.js
CHANGED
|
@@ -146,10 +146,9 @@ class Poru extends EventEmitter {
|
|
|
146
146
|
let node;
|
|
147
147
|
if (options.region) {
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
} else {
|
|
149
|
+
const region = this.getNodeByRegion(options.region)[0];
|
|
150
|
+
node = this.nodes.get(region.name || this.leastUsedNodes[0].name || this.leastUsedNodes[0].host)
|
|
151
|
+
} else {
|
|
153
152
|
node = this.nodes.get(
|
|
154
153
|
this.leastUsedNodes[0].name || this.leastUsedNodes[0].host
|
|
155
154
|
);
|