变更
This commit is contained in:
@@ -156,15 +156,15 @@ class Scanner extends BaseProcess
|
|||||||
*/
|
*/
|
||||||
public function timerReload()
|
public function timerReload()
|
||||||
{
|
{
|
||||||
|
if ($this->isReloading) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$this->logger->warning('file change');
|
$this->logger->warning('file change');
|
||||||
|
|
||||||
$swow = \Kiri::getDi()->get(ServerInterface::class);
|
$swow = \Kiri::getDi()->get(ServerInterface::class);
|
||||||
|
|
||||||
$swow->reload();
|
$swow->reload();
|
||||||
|
|
||||||
$this->isReloading = FALSE;
|
|
||||||
|
|
||||||
$this->loadDirs();
|
$this->loadDirs();
|
||||||
|
$this->isReloading = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user