modify mysql result

This commit is contained in:
2022-04-10 14:31:40 +08:00
parent 01458e80f0
commit 9985f51e52
+6 -2
View File
@@ -47,8 +47,10 @@ class Inotify extends BaseProcess
set_exception_handler([$this, 'error']);
if (!extension_loaded('inotify')) {
$this->cid = Timer::tick(1000, function () {
Timer::tick(1000, function ($cid) {
if ($this->isStop()) {
Timer::clear($cid);
}
});
return;
}
@@ -61,6 +63,8 @@ class Inotify extends BaseProcess
public function onSigterm(): static
{
$this->isStop = true;
$this->clear();
return parent::onSigterm(); // TODO: Change the autogenerated stub