From 1acb27442645bef5456b259a56cfb5335a715c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AA=E7=94=B5=E4=BE=A0?= <微信公众号:闪电侠的博客> Date: Thu, 4 Oct 2018 11:03:16 +0800 Subject: [PATCH] fix unBindSession bug --- src/main/java/the/flash/util/SessionUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/the/flash/util/SessionUtil.java b/src/main/java/the/flash/util/SessionUtil.java index a7df7dc..b864047 100644 --- a/src/main/java/the/flash/util/SessionUtil.java +++ b/src/main/java/the/flash/util/SessionUtil.java @@ -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); } }