modify mysql result

This commit is contained in:
2022-04-29 16:51:27 +08:00
parent 91aae64512
commit ef3ea8c7a4
+3 -5
View File
@@ -96,17 +96,15 @@ class Inotify extends BaseProcess
$this->watch($dir);
}
Event::add($this->inotify, [$this, 'check']);
Event::cycle(function () {
Event::del($this->inotify);
});
Event::wait();
}
public function clear()
{
if (is_null($this->inotify)) {
return;
}
Event::del($this->inotify);
Event::exit();
}