Merge 'chakrit/master' fixing #97 process not exiting
This commit is contained in:
commit
c80c0e8276
1 changed files with 3 additions and 0 deletions
|
@ -1016,6 +1016,9 @@ RotatingFileStream.prototype._setupNextRot = function () {
|
||||||
this.timeout = setTimeout(
|
this.timeout = setTimeout(
|
||||||
function () { self.rotate(); },
|
function () { self.rotate(); },
|
||||||
this.rotAt - Date.now());
|
this.rotAt - Date.now());
|
||||||
|
if (typeof this.timeout.unref === 'function') {
|
||||||
|
this.timeout.unref();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RotatingFileStream.prototype._nextRotTime = function _nextRotTime(first) {
|
RotatingFileStream.prototype._nextRotTime = function _nextRotTime(first) {
|
||||||
|
|
Loading…
Reference in a new issue