update 优化 sse 关闭连接各种异常问题

2.X
疯狂的狮子Li 8 months ago
parent 179031e254
commit 600f005a60

@ -46,7 +46,7 @@ public class SseEmitterManager {
if (emitters != null) { if (emitters != null) {
try { try {
emitters.get(token).send(SseEmitter.event().comment("disconnected")); emitters.get(token).send(SseEmitter.event().comment("disconnected"));
} catch (IOException ignore) { } catch (Exception ignore) {
} }
emitters.remove(token); emitters.remove(token);
} }

Loading…
Cancel
Save