fix: 暂存

This commit is contained in:
2026-06-23 14:32:19 +08:00
parent 9be461539c
commit 2a311ca25f
4 changed files with 40 additions and 4 deletions

View File

@@ -69,8 +69,8 @@ public class SseController {
emitter.send(SseEmitter.event()
.name("heartbeat")
.data(""));
} catch (IOException e) {
// 客户端已断开,清理
} catch (Exception e) {
// 客户端已断开IOException或响应已不可用AsyncRequestNotUsableException
connectionManager.remove(userId);
heartbeat.shutdown();
}