Merge pull request #1456 from weaveworks/fix-race-condition

[proxy] fix race condition when waiting for containers to start
This commit is contained in:
Matthias Radestock committed 2015-09-22 14:51:43 +01:00
commit 17b7789531
1 file changed
+1 -1
+1 -1
View File
@@ -312,7 +312,7 @@ func (proxy *Proxy) waitForStart(r *http.Request) {
ch = wait.ch
}
proxy.Unlock()
if found {
if ch != nil {
Log.Debugf("Wait for start of container %s", wait.ident)
<-ch
}