Commit ea3d2648 by lixiaozhong

如果action返回的是空,就不反馈ws的消息

parent 7412327c
...@@ -46,7 +46,9 @@ public class GeneralMessageHandler { ...@@ -46,7 +46,9 @@ public class GeneralMessageHandler {
am.setSenderChannel(ctx.channel()); am.setSenderChannel(ctx.channel());
am.setSenderClientId(senderClientId); am.setSenderClientId(senderClientId);
Object res = generalActionDispatcher.action(am); Object res = generalActionDispatcher.action(am);
channelSender.sendMsgLocal((NioSocketChannel)am.getSenderChannel(), res); if(res != null) {
channelSender.sendMsgLocal((NioSocketChannel)am.getSenderChannel(), res);
}
} }
public ArgumentBox getArgumentBox() { public ArgumentBox getArgumentBox() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment