fix握手环节,不同意握手时增加return处理

This commit is contained in:
wchao 2018-05-27 18:04:26 +08:00
parent fc5ffe6700
commit b46f6d1f82

View File

@ -22,6 +22,7 @@ public class HandshakeReqHandler extends AbCmdHandler {
ImPacket handShakePacket = handShakeProCmdHandler.handshake(packet, channelContext);
if (handShakePacket == null) {
Aio.remove(channelContext, "业务层不同意握手");
return null;
}
ImAio.send(channelContext, handShakePacket);
handShakeProCmdHandler.onAfterHandshaked(packet, channelContext);