Fixed incorrect conditional statements
This commit is contained in:
parent
40ebf2b710
commit
017dfff527
@ -55,7 +55,7 @@ abstract class AbstractCodecEmbedder<T> implements CodecEmbedder<T> {
|
||||
fireChannelDisconnected(context, channel);
|
||||
fireChannelUnbound(context, channel);
|
||||
fireChannelClosed(context, channel);
|
||||
return context.productQueue.isEmpty();
|
||||
return !context.productQueue.isEmpty();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
@ -38,7 +38,7 @@ public class DecoderEmbedder<T> extends AbstractCodecEmbedder<T> {
|
||||
}
|
||||
|
||||
public boolean offer(Object input) {
|
||||
fireMessageReceived(context.getChannel(), input);
|
||||
return context.productQueue.isEmpty();
|
||||
fireMessageReceived(context, context.getChannel(), input);
|
||||
return !context.productQueue.isEmpty();
|
||||
}
|
||||
}
|
||||
|
@ -41,6 +41,6 @@ public class EncoderEmbedder<T> extends AbstractCodecEmbedder<T> {
|
||||
public boolean offer(Object input) {
|
||||
Channel channel = context.getChannel();
|
||||
write(context, channel, succeededFuture(channel), input);
|
||||
return context.productQueue.isEmpty();
|
||||
return !context.productQueue.isEmpty();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user