builder: notify output buffering on body close

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: 1a6262e9efbf2062ade0ad01717f041e6cdfd6fa
Component: engine
This commit is contained in:
Tonis Tiigi
2018-06-10 10:05:30 -07:00
parent 8a84262fd3
commit 99ee72157e
@@ -345,6 +345,11 @@ func (r *rcNotifier) Read(b []byte) (int, error) {
return n, err
}
func (r *rcNotifier) Close() error {
r.notify()
return r.Closer.Close()
}
type wcf struct {
writeCloseFlusher
mu sync.Mutex