mirror of https://gitee.com/stylefeng/roses
修复Session关闭时空指针问题
parent
6f10b330fa
commit
84299d0963
|
@ -103,7 +103,9 @@ public class SessionCenter {
|
|||
**/
|
||||
public static void closed(String sessionId) {
|
||||
for (List<SocketSession<GettySocketOperator>> values : socketSessionMap.values()) {
|
||||
if (ObjectUtil.isNotEmpty(values)) {
|
||||
values.removeIf(item -> item.getSessionId().equals(sessionId));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue