Merge pull request #1 from notthetup/master

Removes input when it's finished.
This commit is contained in:
Xéfir Destiny 2016-08-06 18:25:22 +02:00 committed by GitHub
commit 46a25d4dd5

View File

@ -88,6 +88,10 @@ Mixer.prototype.input = function (args) {
});
this.inputs.push(input);
input.on('finish', () =>{
this.inputs.splice(this.inputs.indexOf(input), 1);
});
return input;
};