diff --git a/lib/winston/common.js b/lib/winston/common.js index d1af9491f..6957cdc20 100644 --- a/lib/winston/common.js +++ b/lib/winston/common.js @@ -412,7 +412,7 @@ exports.tailFile = function(options, callback) { (function read() { if (stream.destroyed) { - fs.close(fd); + fs.close(fd, nop); return; } @@ -497,3 +497,5 @@ exports.stringArrayToSet = function (strArray, errMsg) { return set; }, Object.create(null)); }; + +function nop () {}