改名
This commit is contained in:
@@ -40,6 +40,13 @@ class ServerInotify extends Process
|
|||||||
public function onHandler(\Swoole\Process $process): void
|
public function onHandler(\Swoole\Process $process): void
|
||||||
{
|
{
|
||||||
set_error_handler([$this, 'onErrorHandler']);
|
set_error_handler([$this, 'onErrorHandler']);
|
||||||
|
if (env('debug') !== 'true') {
|
||||||
|
Timer::tick(100000, function () {
|
||||||
|
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->dirs = Config::get('inotify', false, [APP_PATH]);
|
$this->dirs = Config::get('inotify', false, [APP_PATH]);
|
||||||
if (extension_loaded('inotify')) {
|
if (extension_loaded('inotify')) {
|
||||||
$this->inotify = inotify_init();
|
$this->inotify = inotify_init();
|
||||||
|
|||||||
Reference in New Issue
Block a user