modify mysql result

This commit is contained in:
2022-04-29 16:53:11 +08:00
parent ef3ea8c7a4
commit c7760fad12
+4 -3
View File
@@ -96,15 +96,16 @@ class Inotify extends BaseProcess
$this->watch($dir);
}
Event::add($this->inotify, [$this, 'check']);
Event::cycle(function () {
Event::del($this->inotify);
});
Event::cycle([$this, 'clear']);
Event::wait();
}
public function clear()
{
if ($this->isStop()) {
Event::del($this->inotify);
}
}