From 801b19154c0a43fb930bca3e6b409bbbfb8a4a30 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 --- System/Cache/Base/Redis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Cache/Base/Redis.php b/System/Cache/Base/Redis.php index 8088ceb2..750d27d2 100644 --- a/System/Cache/Base/Redis.php +++ b/System/Cache/Base/Redis.php @@ -92,7 +92,7 @@ class Redis implements StopHeartbeatCheck */ public function stopHeartbeatCheck(): void { - if (Context::inCoroutine()) { + if ($this->_timer > -1) { Timer::clear($this->_timer); } $this->_timer = -1;