mirror of
https://github.com/livekit/livekit.git
synced 2026-07-02 09:11:56 +00:00
6fc1899bbb
The WHIP connection-notify loop kept issuing RPCs after the participant had left the room. Guard sendConnectionNotify against a closed participant (returning ErrParticipantNotFound) and treat that error as a clean loop exit. Also reorder DeleteSession so the participant is removed before its WHIP OnClose entry is cleared. Adds tests covering loop termination on participant leave, context cancellation, and the closed-participant guard. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>