Skip to content

Commit

Permalink
fix(JitsiConference) don't fail hangup() if room wasn't created yet
Browse files Browse the repository at this point in the history
Since there is nothing to do, pretend it all went well.
  • Loading branch information
saghul committed Dec 15, 2023
1 parent 536b30f commit 07d8340
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions JitsiConference.js
Original file line number Diff line number Diff line change
Expand Up @@ -2491,9 +2491,7 @@ JitsiConference.prototype.hangup = function() {
return this.room.hangup();
}

return new Promise((resolve, reject) => {
reject(new Error('The conference is not created yet!'));
});
return Promise.resolve();
};

/**
Expand Down

0 comments on commit 07d8340

Please sign in to comment.