Browse Source

fix tiny mistake on removing local tracks

j8
Alexander Chernoshej 8 years ago
parent
commit
60eb76355b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      react/features/base/tracks/actions.js

+ 1
- 1
react/features/base/tracks/actions.js View File

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

Loading…
Cancel
Save