"wait for remote video" loop no longer exists so no need to set 'removed' flag on video.

This commit is contained in:
paweldomas 2015-07-30 10:23:21 +02:00
parent f2bd76ac93
commit 349f196664
1 changed files with 3 additions and 4 deletions

View File

@ -141,12 +141,11 @@ RemoteVideo.prototype.removeRemoteStreamElement = function (stream, isVideo, id)
else
select = $('#' + this.videoSpanId + '>audio');
// Mark video as removed to cancel waiting loop(if video is removed
// before has started)
select.removed = true;
select.remove();
console.info((isVideo ? "Video" : "Audio") +
" removed " + this.getResourceJid(), select);
if (isVideo)
this.VideoLayout.updateRemovedVideo(this.getResourceJid());
};