mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Check servers length in Remote.getServer
This commit is contained in:
@@ -783,6 +783,10 @@ Remote.prototype.getServer = function() {
|
||||
return this._primary_server;
|
||||
}
|
||||
|
||||
if (!this._servers.length) {
|
||||
return void(0);
|
||||
}
|
||||
|
||||
function sortByScore(a, b) {
|
||||
var aScore = a._score + a._fee;
|
||||
var bScore = b._score + b._fee;
|
||||
|
||||
Reference in New Issue
Block a user