Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kids-return committed Aug 25, 2022
1 parent 34d3cf0 commit 28bed53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/grpc-client/src/StreamingCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ public function recv(float $timeout = -1.0)
return new Response(new GPBEmpty(), $recv);
}

if ($recv->statusCode !== 0) {
return Parser::parseResponse($recv, $this->deserialize);
}
return new Response(Parser::deserializeMessage($this->deserialize, $recv->data), $recv);
}

Expand Down

0 comments on commit 28bed53

Please sign in to comment.