From 5c68659e64d8c08d269eff20d21f2604f57ad024 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 6 Sep 2021 01:36:34 +0800 Subject: [PATCH] 111 --- core/Pool/Pool.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/Pool/Pool.php b/core/Pool/Pool.php index 8f7b594b..ab6d3a0d 100644 --- a/core/Pool/Pool.php +++ b/core/Pool/Pool.php @@ -47,6 +47,7 @@ class Pool extends Component protected function pop(Channel $channel, $retain_number): void { if ($channel instanceof Channel && Coroutine::getCid() === -1) { + $channel = null; unset($channel); return; }