From cfc847133e38969c7fb3e02e050448430ad14acf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 9 Jul 2021 10:34:27 +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 --- System/Pool/ClientsPool.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/System/Pool/ClientsPool.php b/System/Pool/ClientsPool.php index 1b3609ae..933d30ef 100644 --- a/System/Pool/ClientsPool.php +++ b/System/Pool/ClientsPool.php @@ -81,6 +81,9 @@ class ClientsPool extends Component { if (env('state') == 'exit') { Timer::clear($this->creates); + foreach (static::$_connections as $channel) { + $this->flush($channel, 0); + } $this->creates = -1; } else { $this->heartbeat_flush();