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