This commit is contained in:
Yotam Mann 2016-12-17 16:35:50 -05:00
parent e7657f27a2
commit 7f23302d01

View file

@ -136,7 +136,7 @@ define(["Tone/core/Tone", "Tone/component/Volume"], function(Tone){
*/
Tone.UserMedia.prototype.close = function(){
if(this._stream){
var track = this._stream.getAudioTracks().forEach(function(track){
this._stream.getAudioTracks().forEach(function(track){
track.stop();
});
this._stream = null;