mirror of https://gitee.com/xiaonuobase/snowy
SSE消息推送模块增加连接已知问题修复
parent
d77945a427
commit
6753cfb3e3
|
@ -138,7 +138,9 @@ public class DevSseCacheUtil {
|
||||||
}
|
}
|
||||||
Map<String,Object> map = new ConcurrentHashMap<>();
|
Map<String,Object> map = new ConcurrentHashMap<>();
|
||||||
map.put(DevSseEmitterParameterEnum.EMITTER.getValue(),emitter);
|
map.put(DevSseEmitterParameterEnum.EMITTER.getValue(),emitter);
|
||||||
|
if(future!=null){
|
||||||
map.put(DevSseEmitterParameterEnum.FUTURE.getValue(), future);
|
map.put(DevSseEmitterParameterEnum.FUTURE.getValue(), future);
|
||||||
|
}
|
||||||
map.put(DevSseEmitterParameterEnum.LOGINID.getValue(), loginId);
|
map.put(DevSseEmitterParameterEnum.LOGINID.getValue(), loginId);
|
||||||
sseCache.put(clientId, map);
|
sseCache.put(clientId, map);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue