Trigger soft-shutdown on timer restart
This commit is contained in:
parent
87f5e0c316
commit
c26e86ec2c
|
|
@ -143,7 +143,7 @@ class StartServer extends Command
|
|||
|
||||
$this->loop->addPeriodicTimer(10, function () {
|
||||
if ($this->getLastRestart() !== $this->lastRestart) {
|
||||
$this->loop->stop();
|
||||
$this->triggerSoftShutdown();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue