prevent multiple callbacks when reading dedicated metadata

pull/1/head
ansuz 5 years ago
parent 9f959eccea
commit bf058d8042

@ -171,7 +171,7 @@ var getDedicatedMetadata = function (env, channelId, handler, cb) {
// ENOENT => there is no metadata log
if (err.code === 'ENOENT') { return void cb(); }
// otherwise stream errors?
cb(err);
return void cb(err);
}
cb();
});

Loading…
Cancel
Save