Browse code

builder: notify output buffering on body close

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>

Tonis Tiigi authored on 2018/05/26 06:58:55
Showing 1 changed files
... ...
@@ -345,6 +345,11 @@ func (r *rcNotifier) Read(b []byte) (int, error) {
345 345
 	return n, err
346 346
 }
347 347
 
348
+func (r *rcNotifier) Close() error {
349
+	r.notify()
350
+	return r.Closer.Close()
351
+}
352
+
348 353
 type wcf struct {
349 354
 	writeCloseFlusher
350 355
 	mu      sync.Mutex