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():
|
||||
time.sleep(30) # Kurz nach Start einmalig prüfen
|
||||
time.sleep(5) # Kurz nach Start einmalig prüfen
|
||||
while True:
|
||||
check_for_updates()
|
||||
time.sleep(6 * 3600) # Dann alle 6 Stunden
|
||||
@@ -2491,6 +2491,7 @@ function flash(id,cls,msg){
|
||||
setInterval(pollUpdate,60000);
|
||||
poll();
|
||||
pollUpdate();
|
||||
setTimeout(pollUpdate, 8000); // Server-Check-Ergebnis abholen bevor der 60s-Takt greift
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user