This commit is contained in:
2023-04-19 13:38:08 +08:00
parent 9f424953ab
commit e0203e2ccd
2 changed files with 5 additions and 9 deletions
+1 -5
View File
@@ -50,11 +50,7 @@ class AsyncServer implements ServerInterface
public function initCoreServers(array $service, int $daemon = 0): void
{
$service = $this->genConfigService($service);
$pid = (int)file_get_contents(storage('.swoole.pid'));
if (posix_kill($pid, 0)) {
posix_kill($pid, SIGTERM);
}
$this->createBaseServer(array_shift($service), $daemon);
foreach ($service as $value) {
$this->addListener($value);