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
+1
View File
@@ -111,6 +111,7 @@ class Server extends Application
SWOOLE_HOOK_SSL | SWOOLE_HOOK_SSL |
SWOOLE_HOOK_TLS | SWOOLE_HOOK_TLS |
SWOOLE_HOOK_SLEEP | SWOOLE_HOOK_SLEEP |
SWOOLE_HOOK_STREAM_FUNCTION |
SWOOLE_HOOK_PROC SWOOLE_HOOK_PROC
); );
} }
+2 -2
View File
@@ -183,16 +183,16 @@ class ServerInotify extends Process
*/ */
public function clearWatch() public function clearWatch()
{ {
try {
foreach ($this->watchFiles as $wd) { foreach ($this->watchFiles as $wd) {
try {
@inotify_rm_watch($this->inotify, $wd); @inotify_rm_watch($this->inotify, $wd);
}
} catch (Exception $exception) { } catch (Exception $exception) {
$this->debug($exception->getMessage()); $this->debug($exception->getMessage());
} finally { } finally {
$this->watchFiles = []; $this->watchFiles = [];
} }
} }
}
/** /**