Skip to content

Commit 61de1a8

Browse files
exaby73transistive
authored andcommitted
refactor: Refactor consumeResults
1 parent 15a7e92 commit 61de1a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Bolt/BoltConnection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ public function setTimeout(float $timeout): void
170170
public function consumeResults(): void
171171
{
172172
$this->logger?->log(LogLevel::DEBUG, 'Consuming results');
173-
if ($this->protocol()->serverState !== ServerState::STREAMING && $this->protocol(
174-
)->serverState !== ServerState::TX_STREAMING) {
173+
if (!$this->isStreaming()) {
175174
$this->subscribedResults = [];
176175

177176
return;

0 commit comments

Comments
 (0)