This commit is contained in:
2023-08-11 02:24:22 +08:00
parent 7424554529
commit db7e16c35c
+1 -1
View File
@@ -45,7 +45,6 @@ class Server
public EventDispatch $dispatch, public EventDispatch $dispatch,
public Router $router) public Router $router)
{ {
on(OnWorkerStop::class, [Timer::class, 'clearAll'], 9999);
} }
@@ -65,6 +64,7 @@ class Server
*/ */
public function start(): void public function start(): void
{ {
on(OnWorkerStop::class, [Timer::class, 'clearAll'], 9999);
if (\config('reload.hot', false) === true) { if (\config('reload.hot', false) === true) {
$this->manager->addProcess(HotReload::class); $this->manager->addProcess(HotReload::class);
} else { } else {