Merge pull request #39761 from tonistiigi/ctx-upload-cancel

builder-next: close build context upload on cancel
This commit is contained in:
Yong Tang 2019-08-17 19:05:26 -07:00 committed by GitHub
commit 0c46a20f94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ func (h *reqBodyHandler) newRequest(rc io.ReadCloser) (string, func()) {
h.mu.Lock()
delete(h.requests, id)
h.mu.Unlock()
rc.Close()
}
}