diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-10-27 09:32:54 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-10-29 06:20:51 -0700 |
| commit | 441d0c4272e42b35951cc5e0bcfd2139f73edec8 (patch) | |
| tree | d40a31b2b961cc7288e4de49a758247f56008d12 /lib/std | |
| parent | f9de83c90ee7bcc13e78f0998ae1a9a46bbeb67e (diff) | |
| download | zig-441d0c4272e42b35951cc5e0bcfd2139f73edec8.tar.gz zig-441d0c4272e42b35951cc5e0bcfd2139f73edec8.zip | |
std.Io.net.HostName: fix missing group cancel
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/Io/net/HostName.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/Io/net/HostName.zig b/lib/std/Io/net/HostName.zig index ea1ffc4834..9a10b36239 100644 --- a/lib/std/Io/net/HostName.zig +++ b/lib/std/Io/net/HostName.zig @@ -269,6 +269,7 @@ pub fn connectMany( var lookup_buffer: [32]HostName.LookupResult = undefined; var lookup_queue: Io.Queue(LookupResult) = .init(&lookup_buffer); var group: Io.Group = .init; + defer group.cancel(io); group.async(io, lookup, .{ host_name, io, &lookup_queue, .{ .port = port, |
