瀏覽代碼

builder: notify output buffering on body close

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi 7 年之前
父節點
當前提交
1a6262e9ef
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      api/server/router/build/build_routes.go

+ 5 - 0
api/server/router/build/build_routes.go

@@ -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