Skip to content

Commit 677474d

Browse files
committed
RU-T47 PR#224 fixes
1 parent 7f28ca8 commit 677474d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stores/app/livekit-store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,9 @@ export const useLiveKitStore = create<LiveKitState>((set, get) => ({
410410
return;
411411
}
412412

413-
// Disconnect from current room if connected
413+
// Disconnect from current room if connected (use full cleanup flow)
414414
if (currentRoom) {
415-
currentRoom.disconnect();
415+
await get().disconnectFromRoom();
416416
}
417417

418418
set({ isConnecting: true });

0 commit comments

Comments
 (0)