Skip to content

Commit

Permalink
prevent calling hangup after hangup
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsantosbh committed Feb 8, 2024
1 parent 459240c commit a720f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/full.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ window.hangup = () => {
micAnalyzer.destroy()
}

if (roomObj) {
if (roomObj && roomObj.state !== 'destroy') {
roomObj.hangup()
}

Expand Down

0 comments on commit a720f2d

Please sign in to comment.