modify mysql result
This commit is contained in:
+5
-6
@@ -51,16 +51,15 @@ class Inotify extends BaseProcess
|
|||||||
set_exception_handler([$this, 'error']);
|
set_exception_handler([$this, 'error']);
|
||||||
|
|
||||||
if (!extension_loaded('inotify')) {
|
if (!extension_loaded('inotify')) {
|
||||||
Timer::tick(1000, function ($cid) {
|
while (true) {
|
||||||
if ($this->isStop()) {
|
if ($this->isStop()) {
|
||||||
Timer::clear($cid);
|
break;
|
||||||
|
}
|
||||||
|
sleep(1);
|
||||||
}
|
}
|
||||||
});
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$this->dirs = Config::get('reload.inotify', []);
|
||||||
$this->dirs = Config::get('inotify', []);
|
|
||||||
|
|
||||||
$this->start();
|
$this->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -79,9 +79,9 @@ class ServerCommand extends Command
|
|||||||
* @throws ConfigException
|
* @throws ConfigException
|
||||||
* @throws \ReflectionException
|
* @throws \ReflectionException
|
||||||
*/
|
*/
|
||||||
protected function scan_file()
|
protected function scan_file(): void
|
||||||
{
|
{
|
||||||
$config = Config::get('scanner', []);
|
$config = Config::get('reload.scanner', []);
|
||||||
if (is_array($config)) foreach ($config as $key => $value) {
|
if (is_array($config)) foreach ($config as $key => $value) {
|
||||||
scan_directory($value, $key);
|
scan_directory($value, $key);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user