This commit is contained in:
2026-07-15 09:54:34 +08:00
parent 39bdb9f5c9
commit 276ea63b54
+3
View File
@@ -2,6 +2,7 @@
namespace Kiri\Server\Abstracts; namespace Kiri\Server\Abstracts;
use Kiri\Error\StdoutLogger;
use Kiri\Server\ServerInterface; use Kiri\Server\ServerInterface;
use Swoole\Process; use Swoole\Process;
@@ -30,6 +31,8 @@ trait ReloadWorkers
private function reloadByServerInstance(): bool private function reloadByServerInstance(): bool
{ {
try { try {
di(StdoutLogger::class)->println('[file-build] Reload worker.');
$server = di(ServerInterface::class) ; $server = di(ServerInterface::class) ;
return $server->reload() !== false; return $server->reload() !== false;
} catch (\Throwable) { } catch (\Throwable) {