diff --git a/package.json b/package.json index 092fd7a..0409e7d 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/libp2p/js-libp2p-mplex#readme", "devDependencies": { - "aegir": "^14.0.0", + "aegir": "^15.2.0", "chai": "^4.1.2", "dirty-chai": "^2.0.1", "interface-stream-muxer": "~0.5.9", diff --git a/src/internals/index.js b/src/internals/index.js index e95efd3..1d4ac0b 100644 --- a/src/internals/index.js +++ b/src/internals/index.js @@ -164,7 +164,7 @@ class Multiplex extends stream.Duplex { used = 0 } - if (data) { + if (data && drained) { drained = this.push(data) }