Skip to content

Commit

Permalink
Merge pull request #1 from zhaolianwang/fix_close_ws
Browse files Browse the repository at this point in the history
fix  null point
  • Loading branch information
zhaolianwang committed Sep 26, 2018
2 parents 53fee37 + 09d5803 commit 7d59e1c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +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);
if (client != null && client.isTransportChannel(ctx.channel(), Transport.WEBSOCKET)) {
log.debug("channel inactive {}", client.getSessionId());
client.onChannelDisconnect();
Expand Down

0 comments on commit 7d59e1c

Please sign in to comment.