eee
This commit is contained in:
+4
-1
@@ -185,11 +185,14 @@ class HotReload extends BaseProcess
|
|||||||
*/
|
*/
|
||||||
private function loadByDir($path, bool $isReload = false): void
|
private function loadByDir($path, bool $isReload = false): void
|
||||||
{
|
{
|
||||||
if (!is_string($path)) {
|
if (!is_string($path) || $this->isStop()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$path = rtrim($path, '/');
|
$path = rtrim($path, '/');
|
||||||
foreach (glob(realpath($path) . '/*') as $value) {
|
foreach (glob(realpath($path) . '/*') as $value) {
|
||||||
|
if ($this->isStop()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (is_dir($value)) {
|
if (is_dir($value)) {
|
||||||
$this->loadByDir($value, $isReload);
|
$this->loadByDir($value, $isReload);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user