Skip to content

Commit

Permalink
Don't throw on double close
Browse files Browse the repository at this point in the history
  • Loading branch information
dumarchie committed Sep 4, 2019
1 parent f32b86a commit b8f92d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/IO/Socket/Async.pm6
Expand Up @@ -166,7 +166,7 @@ my class IO::Socket::Async {

method close(IO::Socket::Async:D: --> True) {
nqp::closefh($!VMIO);
$!close-vow.keep(True);
try $!close-vow.keep(True);
}

method connect(IO::Socket::Async:U: Str() $host, Int() $port where Port-Number,
Expand Down

0 comments on commit b8f92d2

Please sign in to comment.