modify mysql result

This commit is contained in:
2022-04-29 17:06:34 +08:00
parent 804f795f98
commit 8a1e001cab
+4 -6
View File
@@ -97,15 +97,13 @@ class Inotify extends BaseProcess
$this->watch($dir);
}
Event::add($this->inotify, [$this, 'check']);
while (true) {
Event::cycle(function () {
if ($this->isStop()) {
Event::del($this->inotify);
break;
}
Event::dispatch();
usleep(100 * 1000);
}
Event::exit();
}, true);
Event::wait();
}