From a6c59331af90d63dff24dba974030921b84a30e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 17 Jun 2022 15:09:10 +0800 Subject: [PATCH] modify plugin name --- Mysql/PDO.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Mysql/PDO.php b/Mysql/PDO.php index 22170ad..7882a5b 100644 --- a/Mysql/PDO.php +++ b/Mysql/PDO.php @@ -225,9 +225,7 @@ class PDO implements StopHeartbeatCheck public function check(): bool { try { - if ($this->_last == 0) { - $this->_last = time(); - } + if ($this->_last == 0) $this->_last = time(); if (time() - $this->_last >= 600) { throw new Exception('Idle dis.'); }