Skip to content

Commit

Permalink
踢人的时候不再主动删除路由信息,只发踢人消息到客户端,路由信息有客户端主动解绑的时候再处理。
Browse files Browse the repository at this point in the history
  • Loading branch information
夜色 committed Jun 9, 2018
1 parent 0201d2a commit d9bd09d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ public void onReceiveKickRemoteMsg(KickRemoteMsg msg) {
if (localRouter != null) {
Logs.CONN.info("receive kick remote msg, msg={}", msg);
if (localRouter.getRouteValue().getId().equals(msg.getConnId())) {//二次校验,防止误杀
//fix 0.8.1 踢人的时候不再主动删除路由信息,只发踢人消息到客户端,路由信息有客户端主动解绑的时候再处理。
//2.1删除本地路由信息
localRouterManager.unRegister(userId, clientType);
//localRouterManager.unRegister(userId, clientType);
//2.2发送踢人消息到客户端
sendKickUserMessage2Client(userId, localRouter);
} else {
Expand Down

0 comments on commit d9bd09d

Please sign in to comment.