This commit is contained in:
2020-09-05 03:03:02 +08:00
parent a024fcb768
commit 3ac3de2562
2 changed files with 3 additions and 6 deletions
+3 -3
View File
@@ -160,10 +160,10 @@ class Connection extends Pool
return $this->saveClient($coroutineName, $this->nowClient($coroutineName, $config));
}
[$timeout, $connection] = $client = $this->get($coroutineName);
if (!($connection instanceof PDO)) {
return $this->saveClient($coroutineName, $this->nowClient($coroutineName, $config));
if ($connection instanceof PDO) {
return $this->saveClient($coroutineName, $connection);
}
return $this->saveClient($coroutineName, $connection);
return $this->saveClient($coroutineName, $this->nowClient($coroutineName, $config));
}