Skip to content

Commit

Permalink
Update System.php
Browse files Browse the repository at this point in the history
  • Loading branch information
VennDev authored Aug 25, 2024
1 parent 225fa54 commit 28c4b09
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/vennv/vapm/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,8 @@ public static function init(): void
{
if (!self::$hasInit) {
self::$hasInit = true;
register_shutdown_function(function () {
self::runSingleEventLoop();
});
register_shutdown_function(fn() => self::runSingleEventLoop());
register_tick_function(fn() => self::runEventLoop());
}

parent::init();
Expand Down Expand Up @@ -290,4 +289,4 @@ public static function timeEnd(string $name = 'Console'): void
unset(self::$timings[$name]);
}

}
}

0 comments on commit 28c4b09

Please sign in to comment.