expect metadata to be a Buffer

This commit is contained in:
Feross Aboukhadijeh 2014-03-27 23:36:04 -07:00
parent 3bef511a48
commit c28d792a8a
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}