One condition is enough to check if a pipeline is attached or not

This commit is contained in:
Trustin Lee 2008-12-03 07:20:46 +00:00
parent bb137dd5ec
commit d1f0d7fb5e

View File

@ -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) {