Skip to content

Commit

Permalink
Use loop to drain exchange reader
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanCutler committed Oct 11, 2023
1 parent 34360b8 commit 7740c76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ public ClientStreamListener getWriter() {
*/
public void getResult() {
// After exchange is complete, make sure stream is drained to propagate errors through reader
reader.next();
while (reader.next()) { };
}

/** Shut down the streams in this call. */
Expand Down

0 comments on commit 7740c76

Please sign in to comment.