Skip to content

Commit

Permalink
Merge 'chakrit/master' fixing trentm#97 process not exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
Glenn Murray committed Mar 4, 2014
2 parents 6f2cc6b + 9036035 commit c80c0e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/bunyan.js
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,9 @@ RotatingFileStream.prototype._setupNextRot = function () {
this.timeout = setTimeout(
function () { self.rotate(); },
this.rotAt - Date.now());
if (typeof this.timeout.unref === 'function') {
this.timeout.unref();
}
}

RotatingFileStream.prototype._nextRotTime = function _nextRotTime(first) {
Expand Down

0 comments on commit c80c0e8

Please sign in to comment.