mirror of
https://github.com/containers/podman.git
synced 2025-10-17 03:04:21 +08:00
Changed from t.StopAtEOF() to t.Stop() and added error check
Signed-off-by: jgallucci32 <john.gallucci.iv@gmail.com>
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user