Skip to content

Commit 928a66e

Browse files
author
czyt
committed
fix panic
1 parent 3435f4f commit 928a66e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/communicate/communicate.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ func (c *Communicate) WriteStreamTo(rc io.Writer) error {
140140
}
141141

142142
func (c *Communicate) CloseOutput() {
143-
close(c.op)
143+
if c.op != nil {
144+
close(c.op)
145+
}
144146
}
145147

146148
func makeHeaders() http.Header {

0 commit comments

Comments
 (0)