prevent multiple callbacks when reading dedicated metadata

This commit is contained in:
ansuz 2019-07-23 13:56:37 +02:00
parent 9f959eccea
commit bf058d8042

View File

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