Removes input when it's finished.
Removes an input from the array of inputs when it's 'finished'.
This commit is contained in:
parent
528317ccbc
commit
564d31654f
@ -88,6 +88,10 @@ Mixer.prototype.input = function (args) {
|
|||||||
});
|
});
|
||||||
this.inputs.push(input);
|
this.inputs.push(input);
|
||||||
|
|
||||||
|
input.on('finish', () =>{
|
||||||
|
this.inputs.splice(this.inputs.indexOf(input), 1);
|
||||||
|
});
|
||||||
|
|
||||||
return input;
|
return input;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user