From c26e86ec2c390ff1cdd7cc4d31a7b2912ae6e0ae Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Sun, 13 Sep 2020 09:37:31 +0300 Subject: [PATCH] Trigger soft-shutdown on timer restart --- src/Console/Commands/StartServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Commands/StartServer.php b/src/Console/Commands/StartServer.php index c06ed21..bb865b9 100644 --- a/src/Console/Commands/StartServer.php +++ b/src/Console/Commands/StartServer.php @@ -143,7 +143,7 @@ class StartServer extends Command $this->loop->addPeriodicTimer(10, function () { if ($this->getLastRestart() !== $this->lastRestart) { - $this->loop->stop(); + $this->triggerSoftShutdown(); } }); }