Fix receiving double heartbeat messages

This commit is contained in:
2021-02-01 01:20:13 +03:00
parent 801fdfe547
commit b395e1e3ee

View File

@@ -188,7 +188,9 @@ abstract class Connection
if ($response->isHeartBeat()) { if ($response->isHeartBeat()) {
$this->command('NOP'); $this->command('NOP');
$response = $this->readResponse(); $this->checkIsOK();
return;
} }
if (!$response->isOk()) { if (!$response->isOk()) {