diff --git a/static/js/directives/audiovideo.js b/static/js/directives/audiovideo.js index daff2b3d..468391d0 100644 --- a/static/js/directives/audiovideo.js +++ b/static/js/directives/audiovideo.js @@ -354,7 +354,7 @@ define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/ mediaStream.webrtc.e.on("statechange", function(event, iceConnectionState, currentcall) { - if (!$scope.haveStreams) { + if (!$scope.haveStreams || currentcall.closed) { return; }