modify mysql result

This commit is contained in:
2022-04-29 16:57:39 +08:00
parent 7e2d920f6c
commit 2415e24045
+7 -7
View File
@@ -100,14 +100,14 @@ class Inotify extends BaseProcess
}
Event::add($this->inotify, [$this, 'check']);
Event::cycle([$this, 'clear']);
Event::wait();
}
while (true) {
if ($this->isStop()) {
Event::del($this->inotify);
break;
}
Event::dispatch();
public function clear()
{
if ($this->isStop()) {
Event::del($this->inotify);
usleep(100 * 1000);
}
}