about summary refs log tree commit homepage
path: root/xt/httpd-async-stream.t
diff options
context:
space:
mode:
Diffstat (limited to 'xt/httpd-async-stream.t')
-rw-r--r--xt/httpd-async-stream.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/xt/httpd-async-stream.t b/xt/httpd-async-stream.t
index 904f2ae9..099ceb79 100644
--- a/xt/httpd-async-stream.t
+++ b/xt/httpd-async-stream.t
@@ -67,7 +67,7 @@ my $do_get_all = sub {
         }
         my $res = $dig->hexdigest;
         my $elapsed = sprintf('%0.3f', now() - $t0);
-        close $rd or die "close curl failed: $! \$?=$?\n";
+        $rd->close or xbail "close curl failed: $! \$?=$?\n";
         print STDERR "# $job $$ ($?) $res (${elapsed}s) $bytes bytes\n";
         $res;
 };