浏览代码

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