Skip to content

Commit

Permalink
Merge pull request #38 from signalwire/joao/fix_hangup
Browse files Browse the repository at this point in the history
Bug Fix: `Error: Invalid RTCPeer ID to hangup`
  • Loading branch information
jpsantosbh authored Feb 8, 2024
2 parents 459240c + a720f2d commit a91c346
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 a91c346

Please sign in to comment.