This commit is contained in:
2021-02-17 00:03:22 +08:00
parent 093dbc986e
commit 3877b0fb29
+1 -1
View File
@@ -127,7 +127,7 @@ abstract class Pool extends Component
public function createConnect(array $config, string $coroutineName, callable $createHandler): PDO|Redis|false
{
if (Context::hasContext('create:connect:' . $coroutineName)) {
while (!($client = Context::getContext($coroutineName))){
while (($client = Context::getContext($coroutineName)) != null){
var_dump($client);
}
var_dump($client);