Skip to content

Commit

Permalink
livekit-rtc: set room state to disconnected on dc
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp committed Jun 28, 2024
1 parent c473c11 commit c4836b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/livekit-rtc/src/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export class Room extends (EventEmitter as new () => TypedEmitter<RoomCallbacks>

FfiClient.instance.removeAllListeners();
this.removeAllListeners();
this.connectionState = ConnectionState.CONN_DISCONNECTED;
}

private onFfiEvent = (ffiEvent: FfiEvent) => {
Expand Down

0 comments on commit c4836b5

Please sign in to comment.