From 806679decdf446a31fa13f1159da9d52673d6fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 16 Aug 2021 18:24:14 +0800 Subject: [PATCH] e --- src/Mysql/PDO.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mysql/PDO.php b/src/Mysql/PDO.php index 679e578..8d2ca85 100644 --- a/src/Mysql/PDO.php +++ b/src/Mysql/PDO.php @@ -239,6 +239,9 @@ class PDO */ public function _pdo(): \PDO { + if ($this->_timer === -1) { + $this->heartbeat_check(); + } if (!($this->pdo instanceof \PDO)) { $this->pdo = $this->newClient(); }