Skip to content

Commit

Permalink
Avoid throwing an exception on close if a VertxInputStream is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
essobedo committed Jul 13, 2021
1 parent 4815e53 commit 8f74923
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 8f74923

Please sign in to comment.