Always Cancel before Close
Document this contract. Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
@@ -191,6 +191,7 @@ func (p *process) Delete(ctx context.Context, opts ...ProcessDeleteOpts) (*ExitS
|
||||
return nil, errdefs.FromGRPC(err)
|
||||
}
|
||||
if p.io != nil {
|
||||
p.io.Cancel()
|
||||
p.io.Wait()
|
||||
p.io.Close()
|
||||
}
|
||||
|
Reference in New Issue
Block a user