We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ca65dc9 + 7bd8dcd commit 5ba3687Copy full SHA for 5ba3687
2 files changed
process.go
@@ -111,9 +111,11 @@ func (p *process) Start(ctx context.Context) error {
111
ExecID: p.id,
112
})
113
if err != nil {
114
- p.io.Cancel()
115
- p.io.Wait()
116
- p.io.Close()
+ if p.io != nil {
+ p.io.Cancel()
+ p.io.Wait()
117
+ p.io.Close()
118
+ }
119
return errdefs.FromGRPC(err)
120
}
121
p.pid = r.Pid
task.go
@@ -189,8 +189,10 @@ func (t *task) Start(ctx context.Context) error {
189
ContainerID: t.id,
190
191
192
- t.io.Cancel()
193
- t.io.Close()
+ if t.io != nil {
+ t.io.Cancel()
194
+ t.io.Close()
195
196
197
198
t.pid = r.Pid
0 commit comments