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

5923-fix-leaking-go-routine
This commit is contained in:
Victor Vieux 2014-05-21 10:11:56 -07:00
commit 286a17ff19
1 changed files with 1 additions and 1 deletions

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