summaryrefslogtreecommitdiff
path: root/libpod/container_api.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-03-12 16:12:09 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-03-13 10:18:51 -0400
commit3b5805d521b8fa8a948efe74133ad1148a4c180d (patch)
treec5bfc0a0e48019e4dacda504532e1c6e00b60711 /libpod/container_api.go
parent8b3f759800ebd6e53e0a807728ede633aa9bdb36 (diff)
downloadpodman-3b5805d521b8fa8a948efe74133ad1148a4c180d.tar.gz
podman-3b5805d521b8fa8a948efe74133ad1148a4c180d.tar.bz2
podman-3b5805d521b8fa8a948efe74133ad1148a4c180d.zip
Add event on container death
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/container_api.go')
-rw-r--r--libpod/container_api.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/libpod/container_api.go b/libpod/container_api.go
index 3698a15ec..8db12c14a 100644
--- a/libpod/container_api.go
+++ b/libpod/container_api.go
@@ -89,7 +89,6 @@ func (c *Container) Start(ctx context.Context, recursive bool) (err error) {
}
// Start the container
- defer c.newContainerEvent(events.Start)
return c.start()
}
@@ -127,7 +126,6 @@ func (c *Container) StartAndAttach(ctx context.Context, streams *AttachStreams,
}
close(attachChan)
}()
- c.newContainerEvent(events.Start)
c.newContainerEvent(events.Attach)
return attachChan, nil
}