1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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

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()
}
}