Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 277399f

Browse files
committed
fix pids in isRunning
1 parent 5e27069 commit 277399f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Commands/HttpServerCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ public function isRunning()
286286
return false;
287287
}
288288

289-
[$masterPid, $managerPid] = $pids;
289+
$masterPid = $pids['masterPid'] ?? null;
290+
$managerPid = $pids['managerPid'] ?? null;
290291

291292
if ($managerPid) {
292293
// Swoole process mode

0 commit comments

Comments
 (0)