From 46001126e5215640fe2d0a23b57fb58f084b8f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 17 Aug 2021 19:05:50 +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 --- src/Mysql/PDO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mysql/PDO.php b/src/Mysql/PDO.php index f8a0ec2..24f34de 100644 --- a/src/Mysql/PDO.php +++ b/src/Mysql/PDO.php @@ -98,7 +98,7 @@ class PDO implements StopHeartbeatCheck */ public function stopHeartbeatCheck(): void { - if (Context::inCoroutine()) { + if ($this->_timer > -1) { Timer::clear($this->_timer); } $this->_timer = -1;