One condition is enough to check if a pipeline is attached or not
This commit is contained in:
parent
bb137dd5ec
commit
d1f0d7fb5e
@ -100,7 +100,7 @@ public class DefaultChannelPipeline implements ChannelPipeline {
|
||||
}
|
||||
|
||||
public boolean isAttached() {
|
||||
return channel != null && sink != null;
|
||||
return sink != null;
|
||||
}
|
||||
|
||||
public synchronized void addFirst(String name, ChannelHandler handler) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user