Skip to content

Commit

Permalink
[ISSUE apache#8366] Compare channels for equality using isWrapperOf.
Browse files Browse the repository at this point in the history
  • Loading branch information
YanYunyang committed Jul 11, 2024
1 parent 32f0e84 commit 36d561f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public void closeChannel(final String addr, final Channel channel) {
if (null == prevCW) {
LOGGER.info("closeChannel: the channel[{}] has been removed from the channel table before", addrRemote);
removeItemFromTable = false;
} else if (prevCW.getChannel() != channel) {
} else if (prevCW.isWrapperOf(channel)) {
LOGGER.info("closeChannel: the channel[{}] has been closed before, and has been created again, nothing to do.",
addrRemote);
removeItemFromTable = false;
Expand Down

0 comments on commit 36d561f

Please sign in to comment.