fix(teamsbot): reuse existing SSE queue in joinMeeting to prevent stale reference
All checks were successful
Deploy Plattform-Core (Int) / test (push) Successful in 1m6s
Deploy Plattform-Core (Int) / deploy (push) Successful in 8s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ValueOn AG 2026-06-05 10:38:45 +02:00
parent 74f6f35ad4
commit 10f172e950

View file

@ -716,7 +716,9 @@ class TeamsbotService:
interface = interfaceDb.getInterface(self.currentUser, self.mandateId, self.instanceId)
# Initialize SSE event queue
# Reuse existing SSE event queue if a consumer (SSE generator) already
# holds a reference; replacing it would strand the SSE stream.
if sessionId not in sessionEvents:
sessionEvents[sessionId] = asyncio.Queue()
try: