diff options
author | David Baker <dbkr@matrix.org> | 2014-09-09 17:52:01 +0100 |
---|---|---|
committer | David Baker <dbkr@matrix.org> | 2014-09-09 17:52:01 +0100 |
commit | 25e96f82db21fe0216f748e53aadb8d9dac3da72 (patch) | |
tree | ed9338b793c997dea4b0c684ed1ebe86e612801f /webclient/components | |
parent | Don't play an engaged tone if we hang up locally. (diff) | |
download | synapse-25e96f82db21fe0216f748e53aadb8d9dac3da72.tar.xz |
Don't break if you press the hangup button before allowing media permission.
Diffstat (limited to 'webclient/components')
-rw-r--r-- | webclient/components/matrix/matrix-call.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/components/matrix/matrix-call.js b/webclient/components/matrix/matrix-call.js index aae00a3f77..ef35717da6 100644 --- a/webclient/components/matrix/matrix-call.js +++ b/webclient/components/matrix/matrix-call.js @@ -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'; |