Docker-DCO-1.1-Signed-off-by: Anandkumar Patel <anandkumarpatel@gmail.com> (github: anandkumarpatel)
@@ -652,7 +652,7 @@ func (container *Container) Export() (archive.Archive, error) {
}
func (container *Container) WaitTimeout(timeout time.Duration) error {
- done := make(chan bool)
+ done := make(chan bool, 1)
go func() {
container.Wait()
done <- true