mirror of
https://github.com/livekit/livekit.git
synced 2026-06-27 23:28:41 -04:00
c70b7546da
When AddOnClose was called with a nil callback (to delete an existing entry) on an already-closed participant, the fast path would invoke the nil callback in a goroutine and panic. Skip the fast path when the callback is nil so the delete path runs instead. Fixes CS-1831 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>