This commit is contained in:
2023-08-24 14:15:00 +08:00
parent c3eced973a
commit d0375388b4
+2 -4
View File
@@ -309,11 +309,9 @@ class Connection extends Component
*/
public function release(PDO $PDO): void
{
if ($this->inTransaction()) {
return;
if (!$this->inTransaction()) {
$this->pool()->push($this->cds, [$PDO, time()]);
}
file_put_contents('php://output', '回收PDO连接.' . $this->cds, FILE_APPEND);
$this->pool()->push($this->cds, [$PDO, time()]);
}