mirror of https://github.com/docker/docs.git
Merge pull request #5955 from anandkumarpatel/5923-fix-leaking-go-routine
5923-fix-leaking-go-routine
This commit is contained in:
commit
286a17ff19
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue