Skip to content

Commit

Permalink
fix(JitsiConference) handle repeaded calls to leave gracefully
Browse files Browse the repository at this point in the history
There is no hardm in calling it twice since we protect against it.
  • Loading branch information
saghul committed Aug 23, 2024
1 parent 3170a5b commit 61a2efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JitsiConference.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ JitsiConference.prototype.leave = async function(reason) {

// Leave the conference. If this.room == null we are calling second time leave().
if (!this.room) {
throw new Error('You have already left the conference');
return;
}

const room = this.room;
Expand Down

0 comments on commit 61a2efe

Please sign in to comment.