改名
This commit is contained in:
@@ -51,7 +51,6 @@ class ServerInotify extends Process
|
|||||||
foreach ($this->dirs as $dir) {
|
foreach ($this->dirs as $dir) {
|
||||||
$this->loadByDir($dir);
|
$this->loadByDir($dir);
|
||||||
}
|
}
|
||||||
Timer::after(2000, [$this, 'tick']);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,9 +66,6 @@ class ServerInotify extends Process
|
|||||||
foreach ($this->dirs as $dir) {
|
foreach ($this->dirs as $dir) {
|
||||||
$this->loadByDir($dir, true);
|
$this->loadByDir($dir, true);
|
||||||
}
|
}
|
||||||
if ($this->isReloading) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Timer::after(2000, [$this, 'tick']);
|
Timer::after(2000, [$this, 'tick']);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -98,6 +94,7 @@ class ServerInotify extends Process
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Timer::after(2000, [$this, 'tick']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -189,6 +186,7 @@ class ServerInotify extends Process
|
|||||||
*/
|
*/
|
||||||
public function timerReload()
|
public function timerReload()
|
||||||
{
|
{
|
||||||
|
Timer::clearAll();
|
||||||
if ($this->isReloading) {
|
if ($this->isReloading) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user