]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Probably good idea not to hammer older UnrealIRCd's (adds a usleep..)
authorBram Matthys <redacted>
Sun, 16 Apr 2023 16:07:11 +0000 (18:07 +0200)
committerBram Matthys <redacted>
Sun, 16 Apr 2023 16:07:11 +0000 (18:07 +0200)
api/common_api.php

index d94ef685532510f07f189cb3e836327b7e6dd4a2..36f2422fe18e602cb1c6957ae860334e87e63520 100644 (file)
@@ -82,6 +82,7 @@ function api_timer_loop(int $every_msec, string $method, array|null $params = nu
                        if (!$res)
                                die;
                        send_sse($res);
+                       usleep($every_msec * 1000);
                }
        }