Skip to content

Commit

Permalink
Hotfix for hangup disconnect screen (#1921)
Browse files Browse the repository at this point in the history
-  we cannot disconnect livekit before ending the rtcsession.

Signed-off-by: Timo K <toger5@hotmail.de>
  • Loading branch information
toger5 authored Nov 27, 2023
1 parent 005b0bf commit b17a76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtcSessionHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export async function leaveRTCSession(
rtcSession: MatrixRTCSession,
livekitRoom: Room | undefined,
): Promise<void> {
await livekitRoom?.disconnect();
await rtcSession.leaveRoomSession();
await livekitRoom?.disconnect();
if (widget) {
await widgetPostHangupProcedure(widget);
}
Expand Down

0 comments on commit b17a76a

Please sign in to comment.