From 5d4cdb7b83cebb9a74178984e47bfa9faca57801 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Sun, 21 Sep 2025 22:15:11 +0200 Subject: [PATCH] Fix session-expired event causing events to stop If a session-expired event is hit that does not match the current session then it should be ignored and event processing continue without it. This was incorrectly implemented and instead event processing would stop when any session-expired event was hit, not just the ones matching the current session. Fix logic to properly ignore session-expired events when it doesn't match the current session. --- server/streams.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/streams.ts b/server/streams.ts index aca024a..dd312da 100644 --- a/server/streams.ts +++ b/server/streams.ts @@ -192,8 +192,9 @@ function sendEventToStream(stream: EventStream, event: ApiEvent) { if (event.type === "session-expired") { if (stream.sessionId === event.sessionId) { stream.close("session expired"); + return false; } - return false; + return true; } // Account events are specially handled and only sent to the user they belong to.