From 96bc0dface9e1f73aed855ccfb17ac45f5e63440 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 25 Apr 2021 00:11:27 +0800 Subject: [PATCH] modify --- System/Abstracts/Pool.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 904079d4..c8c75827 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -169,9 +169,9 @@ abstract class Pool extends Component */ protected function getFromChannel($name, mixed $callback): mixed { - if (!Context::inCoroutine()) { - return $this->createClient($name, $callback); - } +// if (!Context::inCoroutine()) { +// return $this->createClient($name, $callback); +// } if (!$this->hasItem($name)) { $this->createByCallback($name, $callback); }