Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
fix bug in pub/sub protocol decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
wg committed Mar 2, 2013
1 parent 9a03a78 commit 760f083
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -36,7 +36,7 @@ public PubSubCommandHandler(BlockingQueue<Command<K, V, ?>> queue, RedisCodec<K,

@Override
protected void decode(ChannelHandlerContext ctx, ChannelBuffer buffer) throws InterruptedException {
while (!queue.isEmpty()) {
while (output.type() == null && !queue.isEmpty()) {
CommandOutput<K, V, ?> output = queue.peek().getOutput();
if (!rsm.decode(buffer, output)) return;
queue.take().complete();
Expand Down

0 comments on commit 760f083

Please sign in to comment.