From a98807c3788af4d2169889a4becc9a33f04df95d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 20 Oct 2021 16:54:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/Pool/Pool.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/kiri-engine/Pool/Pool.php b/kiri-engine/Pool/Pool.php index 2d43d4ea..d4c078c8 100644 --- a/kiri-engine/Pool/Pool.php +++ b/kiri-engine/Pool/Pool.php @@ -218,12 +218,8 @@ class Pool extends Component if (!isset(static::$_connections[$name])) { return; } - - var_dump(static::$_connections[$name]); - - /** @var Channel|SplQueue $connection */ - foreach (static::$_connections[$name] as $connection) { - $client = $connection->pop(); + while (static::$_connections[$name]->length() > 0) { + $client = static::$_connections[$name]->pop(); if ($client instanceof StopHeartbeatCheck) { $client->stopHeartbeatCheck(); }