Fix an inspector warning
This commit is contained in:
parent
2a74378d01
commit
31c24bc981
@ -32,15 +32,16 @@ abstract class AbstractEpollChannel extends AbstractChannel {
|
||||
volatile int fd;
|
||||
int id;
|
||||
|
||||
AbstractEpollChannel(Channel parent, EventLoop eventLoop, int fd, int flag) {
|
||||
AbstractEpollChannel(EventLoop eventLoop, int flag) {
|
||||
this(null, eventLoop, socketFd(), flag, false);
|
||||
}
|
||||
|
||||
AbstractEpollChannel(Channel parent, EventLoop eventLoop, int fd, int flag, boolean active) {
|
||||
super(parent, eventLoop);
|
||||
this.fd = fd;
|
||||
readFlag = flag;
|
||||
flags |= flag;
|
||||
}
|
||||
|
||||
AbstractEpollChannel(EventLoop eventLoop, int flag) {
|
||||
this(null, eventLoop, socketFd(), flag);
|
||||
this.active = active;
|
||||
}
|
||||
|
||||
private static int socketFd() {
|
||||
|
@ -47,6 +47,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* maximal performance.
|
||||
*/
|
||||
public final class EpollSocketChannel extends AbstractEpollChannel implements SocketChannel {
|
||||
|
||||
private final EpollSocketChannelConfig config;
|
||||
|
||||
/**
|
||||
@ -61,8 +62,7 @@ public final class EpollSocketChannel extends AbstractEpollChannel implements So
|
||||
private volatile boolean outputShutdown;
|
||||
|
||||
EpollSocketChannel(Channel parent, EventLoop eventLoop, int fd) {
|
||||
super(parent, eventLoop, fd, Native.EPOLLIN);
|
||||
active = true;
|
||||
super(parent, eventLoop, fd, Native.EPOLLIN, true);
|
||||
config = new EpollSocketChannelConfig(this);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user