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
0cfd12786fd1.

[NO NEW TESTS NEEDED]

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2023-07-26 13:57:37 +02:00
parent 9706147089
commit d70f15cc0a

View File

@ -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