This commit is contained in:
2020-09-01 15:01:11 +08:00
parent 0d5d7322ca
commit f4fbb04525
2 changed files with 5 additions and 6 deletions
+2 -1
View File
@@ -68,9 +68,10 @@ class ServerManager
*/
protected static function createProcess($process, $application, $pool, $workerId)
{
$application->set($pool->getProcess($workerId));
$process = new $process($application);
$application->debug(sprintf('Worker #%d is running.', $workerId));
return $process->start($pool->getProcess($workerId));
return $process->start();
}