Skip to content

Commit

Permalink
reversing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuripetusko committed Oct 15, 2014
1 parent 9c4b5e9 commit d769a20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RTCMultiConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -5940,7 +5940,7 @@
if (!mediaStream) throw 'MediaStream argument is mandatory.';

// Latest firefox does support mediaStream.getAudioTrack but doesn't support stop on MediaStreamTrack
var checkForMediaStreamTrackStop = Boolean(mediaStream.getAudioTracks && mediaStream.getAudioTracks().length && !mediaStream.getAudioTracks()[0].stop);
var checkForMediaStreamTrackStop = Boolean(mediaStream.getAudioTracks && mediaStream.getAudioTracks().length && mediaStream.getAudioTracks()[0].stop);

if (connection.keepStreamsOpened) {
mediaStream.onended();
Expand All @@ -5953,7 +5953,7 @@
delete connection.localStreams[mediaStream.streamid];
}

if (!mediaStream.getAudioTracks || checkForMediaStreamTrackStop) {
if (!mediaStream.getAudioTracks || !checkForMediaStreamTrackStop) {
if (mediaStream.stop) {
mediaStream.stop();
}
Expand Down

0 comments on commit d769a20

Please sign in to comment.