Skip to content

Commit

Permalink
Update Worker.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Jul 30, 2023
1 parent 5ccd9d4 commit fb8d6aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,9 @@ protected static function forkWorkersForWindows()

\restore_error_handler();

// Add an empty timer to prevent the event-loop from exiting.
Timer::add(1000000, function (){});

// Display UI.
static::safeEcho(\str_pad($worker->name, 48) . \str_pad($worker->getSocketName(), 36) . \str_pad('1', 10) . " [ok]\n");
$worker->listen();
Expand Down

0 comments on commit fb8d6aa

Please sign in to comment.