fix disconnect screen taking precedence over error screen

closes #68
This commit is contained in:
りき萌 2025-09-10 16:10:27 +02:00
parent 2810fe248f
commit 3999dd3012
2 changed files with 8 additions and 1 deletions

View file

@ -98,6 +98,10 @@ function readUrl(urlString) {
},
async onDisconnect() {
if (session.errored) return; // Display the error screen
console.info("showing disconnected refresh screen");
let duration = 5000 + Math.random() * 1000;
while (true) {
console.info("waiting a bit for the server to come back up", duration);