diff --git a/kiri-engine/Pool/Pool.php b/kiri-engine/Pool/Pool.php index ef3652c4..b1d290f4 100644 --- a/kiri-engine/Pool/Pool.php +++ b/kiri-engine/Pool/Pool.php @@ -89,7 +89,7 @@ class Pool extends Component $lists = []; $count = $channel->length(); while ($this->status->is(StatusEnum::EXIT) === false) { - if (!(($pdo = $channel->pop()) instanceof PDO)) { + if (!(($pdo = $channel->pop(0)) instanceof PDO)) { break; } if ($pdo->check()) {