Skip to content
Permalink
Browse files

Make sure the decoder is detached when closing

Fixes #2272
  • Loading branch information...
lizmat committed Sep 13, 2018
1 parent 1c3b724 commit b07874e061503194629be9ac908d542333a3eb3a
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/IO/Handle.pm6
@@ -214,6 +214,7 @@ my class IO::Handle {
nqp::if(
nqp::defined($!PIO),
nqp::stmts(
$!decoder && ($!decoder := Encoding::Decoder),
#?if !moar
nqp::closefh($!PIO), # TODO: catch errors
$!PIO := nqp::null

0 comments on commit b07874e

Please sign in to comment.
You can’t perform that action at this time.