Skip to content

Commit

Permalink
Don't throw an exception when finishing a closed RESTEasy response
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Dec 6, 2021
1 parent c3b3a46 commit 4783958
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 4783958

Please sign in to comment.