Skip to content

Commit

Permalink
Address static check.
Browse files Browse the repository at this point in the history
  • Loading branch information
gianm committed Jul 26, 2024
1 parent 4d8d1a0 commit aa3d3bf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@ public void close()
// have no effect. Guard against this case by checking if the channelFuture has resolved, and if so, close the
// channel here.
try {
final ReadableFrameChannel channel = FutureUtils.getUncheckedImmediately(channelFuture);
final ReadableFrameChannel theChannel = FutureUtils.getUncheckedImmediately(channelFuture);

try {
channel.close();
theChannel.close();
}
catch (Throwable t) {
log.noStackTrace().warn(t, "Failed to close channel");
}
}
catch (Throwable ignored) {
// Some error happened while creating the channel. Suppress it.
// Suppress.
}
}
}
Expand Down

0 comments on commit aa3d3bf

Please sign in to comment.