From 61a2efe5b8889b56665a6ce60d537dc38251021b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 23 Aug 2024 15:25:52 +0200 Subject: [PATCH] fix(JitsiConference) handle repeaded calls to leave gracefully There is no hardm in calling it twice since we protect against it. --- JitsiConference.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JitsiConference.js b/JitsiConference.js index 389e42cdde..435d3c000e 100644 --- a/JitsiConference.js +++ b/JitsiConference.js @@ -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;