start(): don't defer event
We'd otherwise emit the start event much after the actual start of the
container when --sdnotify=healthy. I missed adding the change to commit
0cfd12786f
.
[NO NEW TESTS NEEDED]
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
parent
9706147089
commit
d70f15cc0a
|
@ -1241,7 +1241,7 @@ func (c *Container) start(ctx context.Context) error {
|
|||
}
|
||||
}
|
||||
|
||||
defer c.newContainerEvent(events.Start)
|
||||
c.newContainerEvent(events.Start)
|
||||
|
||||
if err := c.save(); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue