Merge pull request #2267 from tedyu/runner-destroy

Avoid duplicate calls to runner#destroy
This commit is contained in:
Michael Crosby 2020-03-24 12:10:56 -04:00 committed by GitHub
commit 4e6d8a0fb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -349,7 +349,9 @@ func (r *runner) run(config *specs.Process) (int, error) {
if detach {
return 0, nil
}
r.destroy()
if err == nil {
r.destroy()
}
return status, err
}