mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Optimize some wrong usage and spelling
Signed-off-by: wgliang <liangcszzu@163.com>
This commit is contained in:
@@ -78,7 +78,7 @@ func (daemon *Daemon) containerStop(container *containerpkg.Container, seconds i
|
||||
// 3. If it doesn't, then send SIGKILL
|
||||
if err := daemon.Kill(container); err != nil {
|
||||
// Wait without a timeout, ignore result.
|
||||
_ = <-container.Wait(context.Background(), containerpkg.WaitConditionNotRunning)
|
||||
<-container.Wait(context.Background(), containerpkg.WaitConditionNotRunning)
|
||||
logrus.Warn(err) // Don't return error because we only care that container is stopped, not what function stopped it
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user