diff --git a/libcontainerd/container_windows.go b/libcontainerd/container_windows.go index 6e5f02565e..1e16aefb34 100644 --- a/libcontainerd/container_windows.go +++ b/libcontainerd/container_windows.go @@ -274,6 +274,9 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err if err := ctr.client.backend.StateChanged(ctr.containerID, si); err != nil { logrus.Error(err) } + + logrus.Debugf("libcontainerd: waitExit() completed OK, %+v", si) + if si.State == StateRestart { go func() { err := <-waitRestart @@ -292,7 +295,6 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err }() } - logrus.Debugf("libcontainerd: waitExit() completed OK, %+v", si) return nil }