diff --git a/Inotify.php b/Inotify.php index 7670fe3..d7568db 100644 --- a/Inotify.php +++ b/Inotify.php @@ -100,8 +100,8 @@ class Inotify extends BaseProcess Event::cycle(function () { if ($this->isStop()) { Event::del($this->inotify); + Event::exit(); } - Event::exit(); }, true); Event::wait(); }