From bf4146c73b761339c992c6f5e5dc7e566ae7188a Mon Sep 17 00:00:00 2001 From: whwyy Date: Tue, 19 Dec 2023 14:53:07 +0800 Subject: [PATCH] eee --- HotReload.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/HotReload.php b/HotReload.php index bfcec9b..6300869 100644 --- a/HotReload.php +++ b/HotReload.php @@ -185,11 +185,14 @@ class HotReload extends BaseProcess */ private function loadByDir($path, bool $isReload = false): void { - if (!is_string($path)) { + if (!is_string($path) || $this->isStop()) { return; } $path = rtrim($path, '/'); foreach (glob(realpath($path) . '/*') as $value) { + if ($this->isStop()) { + break; + } if (is_dir($value)) { $this->loadByDir($value, $isReload); }