mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 06:15:21 +00:00
thread: don't leak the thread in spawnManager (#21379)
This commit is contained in:
parent
8ec68c63fa
commit
421fbd939c
@ -63,5 +63,6 @@ pub fn spawnManager(
|
||||
}
|
||||
};
|
||||
wg.start();
|
||||
_ = std.Thread.spawn(.{}, Manager.run, .{ wg, args }) catch Manager.run(wg, args);
|
||||
const t = std.Thread.spawn(.{}, Manager.run, .{ wg, args }) catch return Manager.run(wg, args);
|
||||
t.detach();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user