Minor cleanup

This commit is contained in:
Henrik Rydgård committed 2025-03-25 16:45:43 +01:00
1 parent 4b123a2e09
commit d8f82b5875
3 files changed
+15 -7

No files matched your search

+2 -2
View File
@@ -426,8 +426,8 @@ static void ExecuteWebServer() {
RegisterServer(http->Port());
double lastRegister = time_now_d();
while (RetrieveStatus() == ServerStatus::RUNNING) {
http->RunSlice(1.0);
constexpr double webServerSliceSeconds = 0.2f;
http->RunSlice(webServerSliceSeconds);
double now = time_now_d();
if (now > lastRegister + 540.0) {
RegisterServer(http->Port());