diff --git a/kiri-engine/FileListen/FileChangeCustomProcess.php b/kiri-engine/FileListen/FileChangeCustomProcess.php index 3c4ffba1..93489c77 100644 --- a/kiri-engine/FileListen/FileChangeCustomProcess.php +++ b/kiri-engine/FileListen/FileChangeCustomProcess.php @@ -117,7 +117,9 @@ class FileChangeCustomProcess extends Command foreach ($this->pipes as $pipe) { fclose($pipe); } - proc_close($this->source); + if (is_resource($this->source)) { + proc_close($this->source); + } } }