diff --git a/packages/livekit-rtc/src/room.ts b/packages/livekit-rtc/src/room.ts index 143774f0..95f19ff3 100644 --- a/packages/livekit-rtc/src/room.ts +++ b/packages/livekit-rtc/src/room.ts @@ -159,6 +159,7 @@ export class Room extends (EventEmitter as new () => TypedEmitter FfiClient.instance.removeAllListeners(); this.removeAllListeners(); + this.connectionState = ConnectionState.CONN_DISCONNECTED; } private onFfiEvent = (ffiEvent: FfiEvent) => {