diff --git a/index.js b/index.js index 4000fa4..4c96881 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,7 @@ module.exports = function (metadata) { this._fetching = false this._bitfield = new BitField(0) - if (metadata) { + if (Buffer.isBuffer(metadata)) { this._gotMetadata(metadata) } }