modify mysql result
This commit is contained in:
+4
-6
@@ -97,15 +97,13 @@ class Inotify extends BaseProcess
|
|||||||
$this->watch($dir);
|
$this->watch($dir);
|
||||||
}
|
}
|
||||||
Event::add($this->inotify, [$this, 'check']);
|
Event::add($this->inotify, [$this, 'check']);
|
||||||
while (true) {
|
Event::cycle(function () {
|
||||||
if ($this->isStop()) {
|
if ($this->isStop()) {
|
||||||
Event::del($this->inotify);
|
Event::del($this->inotify);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
Event::dispatch();
|
Event::exit();
|
||||||
|
}, true);
|
||||||
usleep(100 * 1000);
|
Event::wait();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user