This commit is contained in:
2021-03-30 11:56:29 +08:00
parent 4171727784
commit 482f593e3b
21 changed files with 40 additions and 24 deletions
+2 -1
View File
@@ -232,7 +232,7 @@ class ServerInotify extends Process
}
/**
* 清理所有inotify监听
* @throws Exception
*/
public function clearWatch()
{
@@ -240,6 +240,7 @@ class ServerInotify extends Process
try {
inotify_rm_watch($this->inotify, $wd);
} catch (\Throwable $exception) {
logger()->addError($exception, 'throwable');
}
}
$this->watchFiles = [];