fix: Aktualisiere Zeitverzögerung für Update-Überprüfung und füge Timeout für Server-Check hinzu
This commit is contained in:
3
app.py
3
app.py
@@ -1278,7 +1278,7 @@ def check_for_updates():
|
|||||||
|
|
||||||
|
|
||||||
def update_check_loop():
|
def update_check_loop():
|
||||||
time.sleep(30) # Kurz nach Start einmalig prüfen
|
time.sleep(5) # Kurz nach Start einmalig prüfen
|
||||||
while True:
|
while True:
|
||||||
check_for_updates()
|
check_for_updates()
|
||||||
time.sleep(6 * 3600) # Dann alle 6 Stunden
|
time.sleep(6 * 3600) # Dann alle 6 Stunden
|
||||||
@@ -2491,6 +2491,7 @@ function flash(id,cls,msg){
|
|||||||
setInterval(pollUpdate,60000);
|
setInterval(pollUpdate,60000);
|
||||||
poll();
|
poll();
|
||||||
pollUpdate();
|
pollUpdate();
|
||||||
|
setTimeout(pollUpdate, 8000); // Server-Check-Ergebnis abholen bevor der 60s-Takt greift
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.0.9
|
1.0.10
|
||||||
|
|||||||
Reference in New Issue
Block a user