Minor fix to refcounter logic
This commit is contained in:
parent
865a7453d9
commit
1ac69709ee
|
@ -588,7 +588,7 @@ Channel.prototype.readLog = function (cb) {
|
||||||
const self = this;
|
const self = this;
|
||||||
fs.stat(file, function (err, data) {
|
fs.stat(file, function (err, data) {
|
||||||
if (err) {
|
if (err) {
|
||||||
self.refCounter.unref("readLog");
|
self.refCounter.unref("Channel::readLog");
|
||||||
return cb(err, null);
|
return cb(err, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue