Fix unable to connect to console using Remote Play in some cases

This commit is contained in:
redphx
2025-03-11 17:27:59 +07:00
parent 55d7796f96
commit 5dd3ebdea1
4 changed files with 26 additions and 12 deletions

View File

@@ -156,6 +156,11 @@ export class RemotePlayManager {
},
};
// Start with "isDefault" = true first
this.regions.sort((a: RemotePlayRegion, b: RemotePlayRegion) => {
return a.isDefault ? -1 : 0;
})
// Test servers one by one
for (const region of this.regions) {
try {