prevent multiple callbacks when reading dedicated metadata
This commit is contained in:
1 parent
9f959eccea
commit
bf058d8042
1 file changed
+1
-1
+1
-1
@@ -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();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user