Skip to content

Commit

Permalink
[fix] Fix file streams not draining properly (#1291)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisAlderson authored and indexzero committed Apr 25, 2018
1 parent 4860ae4 commit 4564786
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/winston/transports/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ module.exports = class File extends TransportStream {
callback(); // eslint-disable-line callback-return
} else {
this._next = callback;
this._dest.emit('drain');
}

return written;
Expand Down

0 comments on commit 4564786

Please sign in to comment.