فهرست منبع

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

5923-fix-leaking-go-routine
Victor Vieux 11 سال پیش
والد
کامیت
286a17ff19
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      daemon/container.go

+ 1 - 1
daemon/container.go

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