Trigger soft-shutdown on timer restart

This commit is contained in:
Alex Renoki 2020-09-13 09:37:31 +03:00
parent 87f5e0c316
commit c26e86ec2c
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ class StartServer extends Command
$this->loop->addPeriodicTimer(10, function () {
if ($this->getLastRestart() !== $this->lastRestart) {
$this->loop->stop();
$this->triggerSoftShutdown();
}
});
}