This commit is contained in:
2021-11-19 14:49:22 +08:00
parent 0a52bd502b
commit 4862e7e913
+1 -7
View File
@@ -47,9 +47,6 @@ class Inotify
public function clear() public function clear()
{ {
Event::del($this->inotify); Event::del($this->inotify);
var_dump('clear event');
Event::exit(); Event::exit();
} }
@@ -76,10 +73,7 @@ class Inotify
} }
//非重启类型 //非重启类型
if (str_ends_with($ev['name'], '.php')) { if (str_ends_with($ev['name'], '.php')) {
if ($this->process->int !== -1) { sleep(2);
return;
}
usleep(2000);
$this->reload(); $this->reload();
} }
} }