Skip to content

Commit

Permalink
do not forgot close
Browse files Browse the repository at this point in the history
  • Loading branch information
fayland committed Oct 8, 2014
1 parent 721361a commit 9485a41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Dancer/Logger/File/PerRequest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ sub init {
# per request
Scalar::Util::weaken $self;
Dancer::Hook->new('on_reset_state' => sub {
close($self->{fh}); # close
undef $self->{fh};
});
}
Expand Down

0 comments on commit 9485a41

Please sign in to comment.