Made sure life cycle handlers are called only when the pipeline is attached to a channel
This commit is contained in:
parent
f6b23a000b
commit
bb137dd5ec
@ -344,6 +344,10 @@ public class DefaultChannelPipeline implements ChannelPipeline {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isAttached()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
LifeCycleAwareChannelHandler h =
|
LifeCycleAwareChannelHandler h =
|
||||||
(LifeCycleAwareChannelHandler) ctx.getHandler();
|
(LifeCycleAwareChannelHandler) ctx.getHandler();
|
||||||
|
|
||||||
@ -361,6 +365,10 @@ public class DefaultChannelPipeline implements ChannelPipeline {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isAttached()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
LifeCycleAwareChannelHandler h =
|
LifeCycleAwareChannelHandler h =
|
||||||
(LifeCycleAwareChannelHandler) ctx.getHandler();
|
(LifeCycleAwareChannelHandler) ctx.getHandler();
|
||||||
|
|
||||||
@ -392,6 +400,10 @@ public class DefaultChannelPipeline implements ChannelPipeline {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isAttached()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
LifeCycleAwareChannelHandler h =
|
LifeCycleAwareChannelHandler h =
|
||||||
(LifeCycleAwareChannelHandler) ctx.getHandler();
|
(LifeCycleAwareChannelHandler) ctx.getHandler();
|
||||||
|
|
||||||
@ -409,6 +421,10 @@ public class DefaultChannelPipeline implements ChannelPipeline {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isAttached()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
LifeCycleAwareChannelHandler h =
|
LifeCycleAwareChannelHandler h =
|
||||||
(LifeCycleAwareChannelHandler) ctx.getHandler();
|
(LifeCycleAwareChannelHandler) ctx.getHandler();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user