Skip to content

Commit

Permalink
Merge pull request quarkusio#18643 from essobedo/no-exception-on-close
Browse files Browse the repository at this point in the history
Avoid throwing an exception on close if a VertxInputStream is closed
  • Loading branch information
geoand authored Jul 14, 2021
2 parents 5ae0521 + 8f74923 commit 75a14d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public int available() throws IOException {
@Override
public void close() throws IOException {
if (closed) {
throw new IOException("Stream is closed");
return;
}
closed = true;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public int available() throws IOException {
@Override
public void close() throws IOException {
if (closed) {
throw new IOException("Stream is closed");
return;
}
closed = true;
try {
Expand Down

0 comments on commit 75a14d3

Please sign in to comment.