mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
thread: don't leak the thread in spawnManager (#21379)
This commit is contained in:
parent
8ec68c63fa
commit
421fbd939c
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue