Skip to content

Commit

Permalink
fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
czyt committed Aug 29, 2024
1 parent 3435f4f commit 928a66e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/communicate/communicate.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ func (c *Communicate) WriteStreamTo(rc io.Writer) error {
}

func (c *Communicate) CloseOutput() {
close(c.op)
if c.op != nil {
close(c.op)
}
}

func makeHeaders() http.Header {
Expand Down

0 comments on commit 928a66e

Please sign in to comment.