Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
lines(:close) means close the handle, always
  • Loading branch information
lizmat committed Sep 19, 2015
1 parent 83d7248 commit eeed6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/IO/Handle.pm
Expand Up @@ -413,7 +413,7 @@ my class IO::Handle does IO {
$line = --$!todo ?? nqp::readlinefh($!PIO) !! '';
}
nqp::bindattr_i($!handle, IO::Handle, '$!ins', $ins);
$!handle.close if $!close and nqp::eoffh($!PIO);
$!handle.close if $!close;
IterationEnd
}
}.new(self, $close, $first, $todo));
Expand Down

0 comments on commit eeed6bb

Please sign in to comment.