提交 393930ef 编写于 作者: N Nikita

Fixed exceptions handling in CommandDecoder. #567

上级 c882694b
......@@ -116,13 +116,16 @@ public class CommandDecoder extends ReplayingDecoder<State> {
} else {
decode(in, cmd, null, ctx.channel());
}
} catch (IOException e) {
} catch (Exception e) {
cmd.tryFailure(e);
}
} else if (data instanceof CommandsData) {
CommandsData commands = (CommandsData)data;
decodeCommandBatch(ctx, in, data, commands);
try {
decodeCommandBatch(ctx, in, data, commands);
} catch (Exception e) {
commands.getPromise().tryFailure(e);
}
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册