Skip to content

Commit

Permalink
Merge pull request quarkusio#21942 from geoand/resteasy-closed
Browse files Browse the repository at this point in the history
Don't throw an exception when finishing a closed RESTEasy response
  • Loading branch information
stuartwdouglas authored Dec 6, 2021
2 parents 2b6c6d9 + 4783958 commit fd5432f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private void transformHeadersList(final String key, final List<Object> valueList

public void finish() throws IOException {
checkException();
if (finished || response.ended())
if (finished || response.ended() || response.closed())
return;
try {
if (os != null) {
Expand Down

0 comments on commit fd5432f

Please sign in to comment.