From b395e1e3ee8b59d681278960aefa7d5a32d592f0 Mon Sep 17 00:00:00 2001 From: Konstantin Grachev Date: Mon, 1 Feb 2021 01:20:13 +0300 Subject: [PATCH] Fix receiving double heartbeat messages --- src/Connection.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Connection.php b/src/Connection.php index efdabc5..5200a00 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -188,7 +188,9 @@ abstract class Connection if ($response->isHeartBeat()) { $this->command('NOP'); - $response = $this->readResponse(); + $this->checkIsOK(); + + return; } if (!$response->isOk()) {