This commit is contained in:
2021-08-16 18:24:14 +08:00
parent ca3b43bd09
commit 806679decd
+3
View File
@@ -239,6 +239,9 @@ class PDO
*/ */
public function _pdo(): \PDO public function _pdo(): \PDO
{ {
if ($this->_timer === -1) {
$this->heartbeat_check();
}
if (!($this->pdo instanceof \PDO)) { if (!($this->pdo instanceof \PDO)) {
$this->pdo = $this->newClient(); $this->pdo = $this->newClient();
} }