From 471f7a92bb4bf23d45319a9b0fc7d21869215378 Mon Sep 17 00:00:00 2001 From: Administrator Date: Thu, 11 Nov 2021 01:32:04 +0800 Subject: [PATCH] 1 --- kiri-engine/Pool/Pool.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kiri-engine/Pool/Pool.php b/kiri-engine/Pool/Pool.php index 206f14d7..1efb94af 100644 --- a/kiri-engine/Pool/Pool.php +++ b/kiri-engine/Pool/Pool.php @@ -220,6 +220,10 @@ class Pool extends Component return; } while (static::$_connections[$name]->length() > 0) { + if (!Context::inCoroutine() && static::$_connections[$name] instanceof Channel) + { + break; + } $client = static::$_connections[$name]->pop(); if ($client instanceof StopHeartbeatCheck) { $client->stopHeartbeatCheck();