This commit is contained in:
2021-11-19 03:27:07 +08:00
parent 5638d171d0
commit 114f5d0279
+5 -1
View File
@@ -53,6 +53,7 @@ class Inotify
/** /**
* 开始监听 * 开始监听
* @throws Exception
*/ */
public function check() public function check()
{ {
@@ -75,7 +76,10 @@ class Inotify
if ($this->process->int !== -1) { if ($this->process->int !== -1) {
return; return;
} }
$this->process->int = @swoole_timer_after(2000, [$this, 'reload']);
usleep(200);
$this->reload();
$this->process->isReloading = true; $this->process->isReloading = true;
} }