From 8c9ae946852dec2e71450c8f71cd7b744d5c6472 Mon Sep 17 00:00:00 2001 From: Philo Hermans Date: Thu, 2 Jan 2025 21:13:17 +0100 Subject: [PATCH] Fix usleep --- src/SupportHotReloading.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SupportHotReloading.php b/src/SupportHotReloading.php index 6f54bf2..35c9796 100644 --- a/src/SupportHotReloading.php +++ b/src/SupportHotReloading.php @@ -109,7 +109,7 @@ public function route(): StreamedResponse $filesByTime[$file] = $time; } - usleep(250); + usleep(250000); // Every 5 seconds we send a ping to keep the connection alive if (! $lastPing || microtime(true) > ($lastPing + 5)) {