mirror of
https://github.com/containers/podman.git
synced 2025-12-08 06:39:05 +08:00
Add StopWithTimeout API function for containers
Normal Stop should not need a timeout, and should use the default Add a function that does accept a timeout aside it Signed-off-by: Matthew Heon <mheon@redhat.com> Closes: #272 Approved by: rhatdan
This commit is contained in:
@@ -101,7 +101,7 @@ func stopCmd(c *cli.Context) error {
|
||||
} else {
|
||||
stopTimeout = ctr.StopTimeout()
|
||||
}
|
||||
if err := ctr.Stop(stopTimeout); err != nil {
|
||||
if err := ctr.StopWithTimeout(stopTimeout); err != nil {
|
||||
if lastError != nil {
|
||||
fmt.Fprintln(os.Stderr, lastError)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user