Skip to content

Commit

Permalink
subType
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaolianwang authored Sep 26, 2018
1 parent 7d59e1c commit bcb057f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void channelInactive(ChannelHandlerContext ctx) throws Exception {
final Channel channel = ctx.channel();
ClientHead client = clientsBox.get(channel);
Packet packet = new Packet(PacketType.MESSAGE);
packet.setSubType(PacketType.MESSAGE);
packet.setSubType(PacketType.DISCONNECT);
if (client != null && client.isTransportChannel(ctx.channel(), Transport.WEBSOCKET)) {
log.debug("channel inactive {}", client.getSessionId());
client.onChannelDisconnect();
Expand Down

0 comments on commit bcb057f

Please sign in to comment.