Merge pull request #5955 from anandkumarpatel/5923-fix-leaking-go-routine

5923-fix-leaking-go-routine
Upstream-commit: 286a17ff1995cf7a6d4bb43cdce5d66d89cf4950
Component: engine
This commit is contained in:
Victor Vieux
2014-05-21 10:11:56 -07:00

View File

@ -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