This commit is contained in:
2021-08-17 19:05:50 +08:00
parent e77a66700d
commit 801b19154c
+1 -1
View File
@@ -92,7 +92,7 @@ class Redis 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;