Commit e5b8f3ce by 段启岩

消息更新

parent 36972f21
...@@ -135,7 +135,8 @@ public class SocketIOServiceImpl implements SocketIOService { ...@@ -135,7 +135,8 @@ public class SocketIOServiceImpl implements SocketIOService {
private void putClient(String userId, SocketIOClient socketIOClient) { private void putClient(String userId, SocketIOClient socketIOClient) {
Set<SocketIOClient> clients = CLIENT_MAP.get(userId); Set<SocketIOClient> clients = CLIENT_MAP.get(userId);
if (null == clients) { if (null == clients) {
CLIENT_MAP.put(userId, new HashSet<>()); clients = new HashSet<>();
CLIENT_MAP.put(userId, clients);
} }
clients.add(socketIOClient); 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