This commit is contained in:
2021-11-05 01:08:40 +08:00
parent 7d0ce48cd0
commit c8c95d9dc9
@@ -66,7 +66,7 @@ class FileChangeCustomProcess extends Command
} else { } else {
$driver = Kiri::getDi()->get(Inotify::class, [$this->dirs, $this]); $driver = Kiri::getDi()->get(Inotify::class, [$this->dirs, $this]);
} }
run(function () use ($driver) { Coroutine::create(function () use ($driver) {
$driver->start(); $driver->start();
}); });
return 0; return 0;