This commit is contained in:
2020-08-31 14:53:52 +08:00
parent 8b1bf6c04a
commit 81130960d3
+5
View File
@@ -21,6 +21,7 @@ class ServerManager
*/
public static function create($pool, $process, $application, $workerId)
{
try {
if (is_string($process) && class_exists($process)) {
return static::createProcess($process, $application, $pool, $workerId);
}
@@ -39,6 +40,10 @@ class ServerManager
};
}
return $server->start();
} catch (Exception $exception) {
echo $exception->getMessage() . PHP_EOL;
return $pool->shutdown();
}
}