Fix data race when task's exec fails to start
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
ae334b045f
commit
9dcf725b76
@ -45,6 +45,7 @@ func (p *process) Start(ctx context.Context) error {
|
||||
}
|
||||
response, err := p.task.client.TaskService().Exec(ctx, request)
|
||||
if err != nil {
|
||||
p.io.Wait()
|
||||
p.io.Close()
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user