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

This commit is contained in:
疯狂的狮子Li 2024-08-01 14:55:43 +08:00
parent 6b14bce25e
commit 2869d590e6

View File

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