diff --git a/kiri-actor/ActorProcess.php b/kiri-actor/ActorProcess.php index 85642e9d..67527df3 100644 --- a/kiri-actor/ActorProcess.php +++ b/kiri-actor/ActorProcess.php @@ -39,17 +39,9 @@ class ActorProcess extends AbstractProcess /** - * @return $this + * @return void */ - public function onSigterm(): static + public function onSigterm(): void { - // TODO: Implement onSigterm() method. - Coroutine::create(function () { - $sign = Coroutine::waitSignal(SIGINT | SIGTERM); - if ($sign) { - $this->onShutdown(true); - } - }); - return $this; } } \ No newline at end of file