改名
This commit is contained in:
@@ -158,22 +158,21 @@ class ServerInotify extends Process
|
|||||||
public function reload()
|
public function reload()
|
||||||
{
|
{
|
||||||
$this->isReloading = true;
|
$this->isReloading = true;
|
||||||
|
|
||||||
//清理所有监听
|
|
||||||
$this->trigger_reload();
|
$this->trigger_reload();
|
||||||
$this->clearWatch();
|
if (Snowflake::isLinux()) {
|
||||||
|
$this->clearWatch();
|
||||||
//重新监听
|
foreach ($this->dirs as $root) {
|
||||||
foreach ($this->dirs as $root) {
|
$this->watch($root);
|
||||||
$this->watch($root);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->int = -1;
|
$this->int = -1;
|
||||||
$this->isReloading = FALSE;
|
$this->isReloading = FALSE;
|
||||||
$this->isReloadingOut = FALSE;
|
$this->isReloadingOut = FALSE;
|
||||||
|
$this->md5Map = [];
|
||||||
$this->loadByDir(APP_PATH . 'app');
|
if (Snowflake::isMac()) {
|
||||||
$this->loadByDir(APP_PATH . 'routes');
|
$this->loadByDir(APP_PATH . 'app');
|
||||||
|
$this->loadByDir(APP_PATH . 'routes');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user