Skip to content

Commit

Permalink
Merge branch '5.0' into 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Jun 11, 2020
2 parents d03c092 + bb216d3 commit aae28b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Response/ResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,9 @@ public static function stream(iterable $responses, float $timeout = null): \Gene
continue;
}

$response->offset += \strlen($chunk);
$chunkLen = \strlen($chunk);
$chunk = new DataChunk($response->offset, $chunk);
$response->offset += $chunkLen;
} elseif (null === $chunk) {
$e = $multi->handlesActivity[$j][0];
unset($responses[$j], $multi->handlesActivity[$j]);
Expand Down

0 comments on commit aae28b6

Please sign in to comment.