windows: Ensure pids are not reused if active
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
0b3e572b85
commit
bff040d087
@ -31,6 +31,7 @@ func (p *Pool) Get() (uint32, error) {
|
||||
}
|
||||
if _, ok := p.pool[pid]; !ok {
|
||||
p.cur = pid
|
||||
p.pool[pid] = struct{}{}
|
||||
return pid, nil
|
||||
}
|
||||
pid++
|
||||
|
Loading…
Reference in New Issue
Block a user