改名
This commit is contained in:
@@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -183,14 +183,14 @@ 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) {
|
||||||
|
$this->debug($exception->getMessage());
|
||||||
|
} finally {
|
||||||
|
$this->watchFiles = [];
|
||||||
}
|
}
|
||||||
} catch (Exception $exception) {
|
|
||||||
$this->debug($exception->getMessage());
|
|
||||||
} finally {
|
|
||||||
$this->watchFiles = [];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user