Do not read if a channel is inactive
This commit is contained in:
parent
46e364e7b7
commit
137f29ba65
@ -768,6 +768,10 @@ public abstract class AbstractChannel extends DefaultAttributeMap implements Cha
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void beginRead() {
|
public void beginRead() {
|
||||||
|
if (!isActive()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (eventLoop().inEventLoop()) {
|
if (eventLoop().inEventLoop()) {
|
||||||
try {
|
try {
|
||||||
doBeginRead();
|
doBeginRead();
|
||||||
|
Loading…
Reference in New Issue
Block a user