Skip to content

Commit

Permalink
Collect GC cycles first
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 7, 2024
1 parent bc4cfa6 commit 1f1e9be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/EventLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ protected function now(): float

private static function onShutdown(int $invocationCount): void
{
\gc_collect_cycles();

$driver = self::getDriver();

$pending = false;
Expand Down

0 comments on commit 1f1e9be

Please sign in to comment.