mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std.Io.net.HostName: fix missing group cancel
This commit is contained in:
parent
f9de83c90e
commit
441d0c4272
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue