This commit is contained in:
2021-01-04 18:54:27 +08:00
parent ba73fc77c3
commit c6411cc23f
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ class Connection extends Pool
if (Context::hasContext($coroutineName)) {
return Context::getContext($coroutineName);
}
if ($this->size($coroutineName) < 1 && $this->hasCreate[$coroutineName] < $this->max) {
if ($this->size($coroutineName) < 1) {
$this->newClient($config, $coroutineName);
}
[$time, $connections] = $this->get($coroutineName);