This commit is contained in:
2020-09-07 11:54:57 +08:00
parent 2b037a858b
commit 36dd6fbcc6
2 changed files with 7 additions and 6 deletions
+6 -6
View File
@@ -183,14 +183,14 @@ class ServerInotify extends Process
*/
public function clearWatch()
{
try {
foreach ($this->watchFiles as $wd) {
foreach ($this->watchFiles as $wd) {
try {
@inotify_rm_watch($this->inotify, $wd);
} catch (Exception $exception) {
$this->debug($exception->getMessage());
} finally {
$this->watchFiles = [];
}
} catch (Exception $exception) {
$this->debug($exception->getMessage());
} finally {
$this->watchFiles = [];
}
}