Skip to content

Commit

Permalink
fix unBindSession bug
Browse files Browse the repository at this point in the history
  • Loading branch information
闪电侠 committed Oct 4, 2018
1 parent 9ff0b77 commit 1acb274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/the/flash/util/SessionUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public static void bindSession(Session session, Channel channel) {

public static void unBindSession(Channel channel) {
if (hasLogin(channel)) {
channel.attr(Attributes.SESSION).set(null);
userIdChannelMap.remove(getSession(channel).getUserId());
channel.attr(Attributes.SESSION).set(null);
}
}

Expand Down

0 comments on commit 1acb274

Please sign in to comment.