mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 15:47:18 +02:00
Check next Remote Play server when the console list is empty
This commit is contained in:
parent
fe609034d6
commit
a6ccd6666e
@ -267,6 +267,10 @@ export class RemotePlay {
|
||||
const resp = await fetch(request);
|
||||
|
||||
const json = await resp.json();
|
||||
if (json.results.length === 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
RemotePlay.#CONSOLES = json.results;
|
||||
|
||||
// Store working server
|
||||
@ -275,7 +279,7 @@ export class RemotePlay {
|
||||
callback();
|
||||
} catch (e) {}
|
||||
|
||||
if (RemotePlay.#CONSOLES) {
|
||||
if (RemotePlay.#CONSOLES && RemotePlay.#CONSOLES.length > 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user