Don't break if you press the hangup button before allowing media permission.

This commit is contained in:
David Baker 2014-09-09 17:52:01 +01:00
parent 253c327252
commit 25e96f82db
2 changed files with 3 additions and 2 deletions

View file

@ -104,7 +104,7 @@ angular.module('MatrixCall', [])
console.trace("Ending call "+this.call_id);
this.stopAllMedia();
this.peerConn.close();
if (this.peerConn) this.peerConn.close();
this.hangupParty = 'local';