Skip to content

Commit

Permalink
shorter code
Browse files Browse the repository at this point in the history
  • Loading branch information
crossoverJie committed Oct 21, 2024
1 parent a93e4ec commit c72deb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void channelInactive(ChannelHandlerContext ctx) {
protected void channelRead0(ChannelHandlerContext ctx, Response msg) {


if (msg.getCmd() == com.crossoverjie.cim.common.protocol.BaseCommand.PING) {
if (msg.getCmd() == BaseCommand.PING) {
ClientImpl.getClient().getConf().getEvent().debug("received ping from server");
NettyAttrUtil.updateReaderTime(ctx.channel(), System.currentTimeMillis());
}
Expand Down

0 comments on commit c72deb2

Please sign in to comment.