Explorar o código

builder-next: close build context upload on cancel

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi %!s(int64=6) %!d(string=hai) anos
pai
achega
2c2cd9b86a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      builder/builder-next/reqbodyhandler.go

+ 1 - 0
builder/builder-next/reqbodyhandler.go

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