Skip to content

Commit

Permalink
CloseFuture is always indicating that the channel is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
violetagg committed Oct 8, 2024
1 parent d3bbcb8 commit af6d2c5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import io.netty.channel.AbstractChannel;
import io.netty.channel.Channel;
import io.netty.channel.ChannelConfig;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelMetadata;
Expand Down Expand Up @@ -705,6 +706,11 @@ static final class DisposedChannel extends AbstractChannel {
this.remoteAddress = copy.remoteAddress();
}

@Override
public ChannelFuture closeFuture() {
return newSucceededFuture();
}

@Override
public ChannelConfig config() {
return config;
Expand Down

0 comments on commit af6d2c5

Please sign in to comment.