diff --git a/kiri-engine/FileListen/Inotify.php b/kiri-engine/FileListen/Inotify.php index a6056363..540650f4 100644 --- a/kiri-engine/FileListen/Inotify.php +++ b/kiri-engine/FileListen/Inotify.php @@ -99,11 +99,12 @@ class Inotify public function reload($path) { $this->process->trigger_reload($path); + $this->process->int = -1; + $this->clearWatch(); foreach ($this->dirs as $root) { $this->watch($root); } - $this->process->int = -1; $this->isReloading = FALSE; }