This commit is contained in:
2021-03-29 15:54:14 +08:00
parent bfb0e8ad40
commit 8e980d9f18
+1 -1
View File
@@ -272,7 +272,7 @@ class ServerInotify extends Process
{ {
//目录不存在 //目录不存在
if (!is_dir($dir)) { if (!is_dir($dir)) {
throw new Exception("[$dir] is not a directory."); return $this->application->addError("[$dir] is not a directory.");
} }
//避免重复监听 //避免重复监听
if (isset($this->watchFiles[$dir])) { if (isset($this->watchFiles[$dir])) {