summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_log.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/libpod/container_log.go b/libpod/container_log.go
index f73a5ffbf..da3ed3113 100644
--- a/libpod/container_log.go
+++ b/libpod/container_log.go
@@ -83,7 +83,11 @@ func (c *Container) readFromLogFile(options *logs.LogOptions, logChannel chan *l
break
}
if state != define.ContainerStateRunning && state != define.ContainerStatePaused {
- t.StopAtEOF()
+ err := t.Stop()
+ if err != nil {
+ logrus.Error(err)
+ break
+ }
break
}
time.Sleep(1 * time.Second)