From 559d931eeb07167969d3cc0767597c0547b6c19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sat, 5 Sep 2020 02:34:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Pool/Connection.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index 7ab3db02..f60d0b45 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -265,9 +265,9 @@ class Connection extends Pool public function checkCanUse($name, $time, $connect) { try { -// if ($time + 60 * 10 < time()) { -// return $result = false; -// } + if ($time + 60 * 10 > time()) { + return $result = false; + } if (empty($connect) || !($connect instanceof PDO)) { return $result = false; }