Skip to content

Commit

Permalink
Fix usleep
Browse files Browse the repository at this point in the history
  • Loading branch information
PhiloNL authored Jan 2, 2025
1 parent e1f62cc commit 8c9ae94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SupportHotReloading.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 8c9ae94

Please sign in to comment.