mirror of
https://github.com/Crocmagnon/buzzer.git
synced 2024-11-25 01:18:06 +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() {
|
function handleError() {
|
||||||
|
clearTimeout(statusTimeout);
|
||||||
console.log("Lost connection :'(");
|
console.log("Lost connection :'(");
|
||||||
document.body.classList.add("w3-disabled");
|
document.body.classList.add("w3-disabled");
|
||||||
connectionOk = false;
|
connectionOk = false;
|
||||||
|
statusTimeout = setTimeout(loadStatus, GLOBAL_TIMEOUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
(() => {
|
(() => {
|
||||||
|
|
Loading…
Reference in a new issue