From a720f2d218ed423c0842f9374fbe933607b0f34e Mon Sep 17 00:00:00 2001 From: Joao Santos Date: Thu, 8 Feb 2024 03:01:04 +0000 Subject: [PATCH] prevent calling hangup after hangup --- public/full.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/full.js b/public/full.js index a724721..5ab2ba1 100644 --- a/public/full.js +++ b/public/full.js @@ -531,7 +531,7 @@ window.hangup = () => { micAnalyzer.destroy() } - if (roomObj) { + if (roomObj && roomObj.state !== 'destroy') { roomObj.hangup() }