Skip to content

Release room on server-ended disconnect - #95

Merged
ladvoc merged 1 commit into
mainfrom
ladvoc/fix-server-ended-room-leak
Oct 21, 2026
Merged

ladvoc merged 1 commit into
mainfrom
ladvoc/fix-server-ended-room-leak

Conversation

@MaxHeimbrock

@MaxHeimbrock MaxHeimbrock commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

On a server-ended disconnect (room deleted, participant removed), the service took running_state but never cleared inner.room, the Arc<Room> shared with the UI. The client-ended path already clears it. As a result, the old room's engine, peer connections and published tracks stayed alive until the next connect replaced the handle.

Found while trying to reproduce livekit/rust-sdks#1443 with a local livekit-server --dev, publishing the sine track and running lk room delete on the server.

@ladvoc Claude decided to use your prefix for the branch... 🤷

The server-ended disconnect path never cleared the UI's shared room
handle, keeping the whole engine and published tracks alive until the
next connect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxHeimbrock
MaxHeimbrock requested a review from ladvoc as a code owner October 21, 2026 13:39
@ladvoc
ladvoc merged commit 12c0931 into main Oct 21, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants