prevent multiple callbacks when reading dedicated metadata
This commit is contained in:
parent
9f959eccea
commit
bf058d8042
@ -171,7 +171,7 @@ var getDedicatedMetadata = function (env, channelId, handler, cb) {
|
|||||||
// ENOENT => there is no metadata log
|
// ENOENT => there is no metadata log
|
||||||
if (err.code === 'ENOENT') { return void cb(); }
|
if (err.code === 'ENOENT') { return void cb(); }
|
||||||
// otherwise stream errors?
|
// otherwise stream errors?
|
||||||
cb(err);
|
return void cb(err);
|
||||||
}
|
}
|
||||||
cb();
|
cb();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user