改名
This commit is contained in:
@@ -89,12 +89,14 @@ class ServerInotify extends Process
|
|||||||
$mTime = filectime($value);
|
$mTime = filectime($value);
|
||||||
if (!isset($this->md5Map[$md5])) {
|
if (!isset($this->md5Map[$md5])) {
|
||||||
if ($isReload) {
|
if ($isReload) {
|
||||||
|
$this->isReloading = true;
|
||||||
return Timer::after(2000, [$this, 'reload']);
|
return Timer::after(2000, [$this, 'reload']);
|
||||||
}
|
}
|
||||||
$this->md5Map[$md5] = $mTime;
|
$this->md5Map[$md5] = $mTime;
|
||||||
} else {
|
} else {
|
||||||
if ($this->md5Map[$md5] != $mTime) {
|
if ($this->md5Map[$md5] != $mTime) {
|
||||||
if ($isReload) {
|
if ($isReload) {
|
||||||
|
$this->isReloading = true;
|
||||||
return Timer::after(2000, [$this, 'reload']);
|
return Timer::after(2000, [$this, 'reload']);
|
||||||
}
|
}
|
||||||
$this->md5Map[$md5] = $mTime;
|
$this->md5Map[$md5] = $mTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user