Skip to content

Commit

Permalink
Update Worker.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Jul 27, 2023
1 parent 2f26751 commit 20681c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Worker
*
* @var string
*/
public const VERSION = '5.0.0-beta.6';
public const VERSION = '5.0.0-beta.7';

/**
* Status starting.
Expand Down Expand Up @@ -1441,6 +1441,9 @@ protected static function forkWorkersForWindows(): void

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 20681c2

Please sign in to comment.