fix websocket断开连接未删除会话缓存
parent
bc05fe497c
commit
1535ae03b6
|
@ -66,7 +66,7 @@ public class WebSocketSessionManagerImpl implements WebSocketSessionManager {
|
||||||
@Override
|
@Override
|
||||||
public void removeSession(WebSocketSession session) {
|
public void removeSession(WebSocketSession session) {
|
||||||
// 移除从 idSessions 中
|
// 移除从 idSessions 中
|
||||||
idSessions.remove(session.getId(), session);
|
idSessions.remove(session.getId());
|
||||||
// 移除从 idSessions 中
|
// 移除从 idSessions 中
|
||||||
LoginUser user = WebSocketFrameworkUtils.getLoginUser(session);
|
LoginUser user = WebSocketFrameworkUtils.getLoginUser(session);
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
|
|
Loading…
Reference in New Issue