Fix a bug where channelInactive() is not triggered for local transport
This commit is contained in:
parent
cf0259661e
commit
d27a27c980
@ -498,8 +498,8 @@ public abstract class AbstractChannel extends DefaultAttributeMap implements Cha
|
|||||||
@Override
|
@Override
|
||||||
public final void close(final ChannelFuture future) {
|
public final void close(final ChannelFuture future) {
|
||||||
if (eventLoop().inEventLoop()) {
|
if (eventLoop().inEventLoop()) {
|
||||||
|
boolean wasActive = isActive();
|
||||||
if (closeFuture.setClosed()) {
|
if (closeFuture.setClosed()) {
|
||||||
boolean wasActive = isActive();
|
|
||||||
try {
|
try {
|
||||||
doClose();
|
doClose();
|
||||||
future.setSuccess();
|
future.setSuccess();
|
||||||
|
Loading…
Reference in New Issue
Block a user