modify mysql result
This commit is contained in:
+3
-5
@@ -96,17 +96,15 @@ 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::del($this->inotify);
|
||||||
|
});
|
||||||
Event::wait();
|
Event::wait();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function clear()
|
public function clear()
|
||||||
{
|
{
|
||||||
if (is_null($this->inotify)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Event::del($this->inotify);
|
|
||||||
Event::exit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user