This commit is contained in:
2021-02-16 23:47:41 +08:00
parent dda2d08b55
commit e8c2e63439
3 changed files with 5 additions and 12 deletions
+1 -4
View File
@@ -151,10 +151,7 @@ class Connection extends Pool
return Context::getContext($coroutineName);
}
if (!$this->hasItem($coroutineName)) {
if (($client = $this->newClient($config, $coroutineName)) == true) {
return Context::getContext($coroutineName);
}
return Context::setContext($coroutineName, $client);
return $this->newClient($config, $coroutineName);
}
[$time, $connections] = $this->get($coroutineName);
if (!($connections instanceof PDO)) {