Skip to content

Commit

Permalink
fix "write after end" error when using the immutable option (#24)
Browse files Browse the repository at this point in the history
* fix "write after end" error when using the immutable option

* revert version bump
  • Loading branch information
JcBernack authored and iccicci committed Mar 30, 2018
1 parent b0ca443 commit 32bae13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ RotatingFileStream.prototype.firstOpen = function() {
RotatingFileStream.prototype.immutate = function(first, index, now) {
if(! index) {
index = 1;
now = this.now();
now = new Date();
}

if(index >= 1001)
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"contributors": [
"cicci",
"allevo",
"Jorge Silva <jorgemsrs@gmail.com>"
"Jorge Silva <jorgemsrs@gmail.com>",
"Jan Christoph Bernack <jc.bernack@gmail.com>"
],
"license": "MIT",
"readmeFilename": "README.md",
Expand Down

0 comments on commit 32bae13

Please sign in to comment.