fix tiny mistake on removing local tracks

This commit is contained in:
Alexander Chernoshej 2016-10-14 17:26:55 +03:00
parent da86cba7ea
commit 60eb76355b
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ function _getLocalTracksToChange(currentTracks, newTracks) {
if (newLocalAudio) {
tracksToAdd.push(newLocalAudio);
currentLocalAudio && tracksToRemove.push(newLocalVideo);
currentLocalAudio && tracksToRemove.push(currentLocalAudio);
}
if (newLocalVideo) {
tracksToAdd.push(newLocalVideo);