diff --git a/l4d2web/routes/server_routes.py b/l4d2web/routes/server_routes.py index dd0865b..da2745a 100644 --- a/l4d2web/routes/server_routes.py +++ b/l4d2web/routes/server_routes.py @@ -269,5 +269,5 @@ def live_state_fragment(server_id: int) -> Response: current_players=current_rows, recent_players=recent_rows, now=datetime.now(UTC).replace(tzinfo=None), - poll_seconds=current_app.config.get("LIVE_STATE_POLL_SECONDS", 5), + poll_seconds=max(1, int(current_app.config.get("LIVE_STATE_POLL_SECONDS", 5))), )