Mute max listener warning
This commit is contained in:
@ -7,6 +7,8 @@ export default function tee(input: Readable) {
|
|||||||
let aFull = false;
|
let aFull = false;
|
||||||
let bFull = false;
|
let bFull = false;
|
||||||
|
|
||||||
|
a.setMaxListeners(Infinity);
|
||||||
|
|
||||||
a.on("drain", () => {
|
a.on("drain", () => {
|
||||||
aFull = false;
|
aFull = false;
|
||||||
if (!aFull && !bFull) input.resume();
|
if (!aFull && !bFull) input.resume();
|
||||||
|
Reference in New Issue
Block a user