Skip to content

Commit

Permalink
Dispose the connection only if it is not disposed
Browse files Browse the repository at this point in the history
  • Loading branch information
violetagg committed Oct 9, 2024
1 parent a142893 commit 0e3ac7f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ public void dispose() {
if (!inbound.isDisposed()) {
discard();
}
connection.dispose();
if (!connection.isDisposed()) {
connection.dispose();
}
}

@Override
Expand Down

0 comments on commit 0e3ac7f

Please sign in to comment.