From 22e4970c37a0490eabe973dea8f436cb265de60e Mon Sep 17 00:00:00 2001 From: Max Heimbrock <43608204+MaxHeimbrock@users.noreply.github.com> Date: Wed, 21 Oct 2026 15:39:05 +0200 Subject: [PATCH] Release room on server-ended disconnect 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 --- src/service.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/service.rs b/src/service.rs index 601170b..ceaa333 100644 --- a/src/service.rs +++ b/src/service.rs @@ -326,6 +326,7 @@ async fn service_task(inner: Arc, mut cmd_rx: mpsc::UnboundedRecei if let Some(mut state) = running_state.take_if(|state| { state.room.connection_state() == ConnectionState::Disconnected }) { + *inner.room.lock() = None; state.unpublish_all(&inner.ui_tx).await; } continue;