mirror of
https://github.com/Crocmagnon/buzzer.git
synced 2024-12-26 07:51:51 +01:00
Keep polling after error
This commit is contained in:
parent
7758725ac6
commit
3a60ce6a97
1 changed files with 2 additions and 0 deletions
|
@ -66,9 +66,11 @@ function handleStatus(data) {
|
|||
}
|
||||
|
||||
function handleError() {
|
||||
clearTimeout(statusTimeout);
|
||||
console.log("Lost connection :'(");
|
||||
document.body.classList.add("w3-disabled");
|
||||
connectionOk = false;
|
||||
statusTimeout = setTimeout(loadStatus, GLOBAL_TIMEOUT);
|
||||
}
|
||||
|
||||
(() => {
|
||||
|
|
Loading…
Reference in a new issue