Trigger the read() after the registration was complete. See #396
This commit is contained in:
parent
e58d657421
commit
7d33846690
@ -108,8 +108,15 @@ public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
|
||||
if (ch == null) {
|
||||
ch = AsynchronousSocketChannel.open(AsynchronousChannelGroup.withThreadPool(eventLoop()));
|
||||
config = new AioSocketChannelConfig(javaChannel());
|
||||
return null;
|
||||
} else if (remoteAddress() != null) {
|
||||
read();
|
||||
return new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
read();
|
||||
}
|
||||
};
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user