Commit b1726f6e by 段启岩

消息更新

parent e2a9a8db
......@@ -134,7 +134,11 @@ public class SocketIOServiceImpl implements SocketIOService {
}
private void putClient(String userId, SocketIOClient socketIOClient) {
CLIENT_MAP.getOrDefault(userId, new HashSet<>()).add(socketIOClient);
Set<SocketIOClient> clients = CLIENT_MAP.get(userId);
if (null == clients) {
CLIENT_MAP.put(userId, new HashSet<>());
}
clients.add(socketIOClient);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment