This commit is contained in:
2023-04-19 15:12:34 +08:00
parent 12b2b0fe48
commit 2534cd0d1b
+4 -4
View File
@@ -57,11 +57,11 @@ class HotReload extends Command
Process::signal(SIGINT, fn() => $this->exit()); Process::signal(SIGINT, fn() => $this->exit());
Process::signal(SIGTERM, fn() => $this->exit()); Process::signal(SIGTERM, fn() => $this->exit());
sleep(3); sleep(3);
if (extension_loaded('inotify')) { // if (extension_loaded('inotify')) {
$this->onInotifyReload(); // $this->onInotifyReload();
} else { // } else {
$this->onCrontabReload(); $this->onCrontabReload();
} // }
return 1; return 1;
} }