modify mysql result
This commit is contained in:
+4
-3
@@ -96,15 +96,16 @@ class Inotify extends BaseProcess
|
|||||||
$this->watch($dir);
|
$this->watch($dir);
|
||||||
}
|
}
|
||||||
Event::add($this->inotify, [$this, 'check']);
|
Event::add($this->inotify, [$this, 'check']);
|
||||||
Event::cycle(function () {
|
Event::cycle([$this, 'clear']);
|
||||||
Event::del($this->inotify);
|
|
||||||
});
|
|
||||||
Event::wait();
|
Event::wait();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function clear()
|
public function clear()
|
||||||
{
|
{
|
||||||
|
if ($this->isStop()) {
|
||||||
|
Event::del($this->inotify);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user