Skip to content

Commit 4fd32ee

Browse files
committed
fix monitor restart
Signed-off-by: Ye Sijun <[email protected]>
1 parent d85ac56 commit 4fd32ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

runtime/restart/monitor/monitor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ func (m *monitor) monitor(ctx context.Context) ([]change, error) {
232232
}
233233
}
234234

235-
// Task or Status return error, only desired to stop
235+
// Task or Status return error, only desired to running
236236
if err != nil {
237237
logrus.WithError(err).Error("monitor")
238-
if desiredStatus != containerd.Stopped {
238+
if desiredStatus == containerd.Stopped {
239239
continue
240240
}
241241
}

0 commit comments

Comments
 (0)