modify plugin name
This commit is contained in:
@@ -212,17 +212,18 @@ class CoroutineServer implements ServerInterface
|
|||||||
public function runServer(Coroutine\Http\Server|Coroutine\Server $server): void
|
public function runServer(Coroutine\Http\Server|Coroutine\Server $server): void
|
||||||
{
|
{
|
||||||
$this->dispatch->dispatch(new OnWorkerStart($server, 0));
|
$this->dispatch->dispatch(new OnWorkerStart($server, 0));
|
||||||
|
try {
|
||||||
$server->start();
|
$server->start();
|
||||||
|
} catch (\Throwable $throwable) {
|
||||||
|
$this->logger->error($throwable->getMessage(), [$throwable]);
|
||||||
|
} finally {
|
||||||
$this->dispatch->dispatch(new OnWorkerStop($server, 0));
|
$this->dispatch->dispatch(new OnWorkerStop($server, 0));
|
||||||
|
|
||||||
if ($this->isShutdown) {
|
if ($this->isShutdown) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->runServer($server);
|
$this->runServer($server);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user