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 authored and jeanphi-baconnais committed Dec 7, 2021
1 parent 7fa407c commit 2c29721
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 2c29721

Please sign in to comment.