This commit is contained in:
as2252258@163.com
2021-04-25 00:11:27 +08:00
parent d087afd8db
commit 96bc0dface
+3 -3
View File
@@ -169,9 +169,9 @@ abstract class Pool extends Component
*/ */
protected function getFromChannel($name, mixed $callback): mixed protected function getFromChannel($name, mixed $callback): mixed
{ {
if (!Context::inCoroutine()) { // if (!Context::inCoroutine()) {
return $this->createClient($name, $callback); // return $this->createClient($name, $callback);
} // }
if (!$this->hasItem($name)) { if (!$this->hasItem($name)) {
$this->createByCallback($name, $callback); $this->createByCallback($name, $callback);
} }