We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 701be3d commit 9edba68Copy full SHA for 9edba68
src/ProcessManager.php
@@ -256,7 +256,7 @@ public function shutdown($graceful = true)
256
$this->output->writeln("<info>Server is shutting down.</info>");
257
$this->status = self::STATE_SHUTDOWN;
258
259
- $remainingSlaves = $this->slaveCount;
+ $remainingSlaves = count($this->slaves->getByStatus(Slave::READY));
260
261
if ($remainingSlaves === 0) {
262
// if for some reason there are no workers, the close callback won't do anything, so just quit.
0 commit comments