From c8c95d9dc92bb5ab3f3fa25e88b0b3767a904554 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 5 Nov 2021 01:08:40 +0800 Subject: [PATCH] 111 --- kiri-engine/FileListen/FileChangeCustomProcess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index e9f286ad..f55f9152 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -66,7 +66,7 @@ class FileChangeCustomProcess extends Command } else { $driver = Kiri::getDi()->get(Inotify::class, [$this->dirs, $this]); } - run(function () use ($driver) { + Coroutine::create(function () use ($driver) { $driver->start(); }); return 0;