Skip to content

Commit a787442

Browse files
authored
Merge pull request swooletw#304 from swooletw/develop
fix pids in isRunning
2 parents eafc1cf + 277399f commit a787442

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)