This commit is contained in:
2021-08-17 19:05:50 +08:00
parent 16b11a4c19
commit 46001126e5
+1 -1
View File
@@ -98,7 +98,7 @@ class PDO implements StopHeartbeatCheck
*/ */
public function stopHeartbeatCheck(): void public function stopHeartbeatCheck(): void
{ {
if (Context::inCoroutine()) { if ($this->_timer > -1) {
Timer::clear($this->_timer); Timer::clear($this->_timer);
} }
$this->_timer = -1; $this->_timer = -1;