Skip to content

Commit

Permalink
Close stream when there's an error from target (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-elinardi authored Oct 11, 2023
1 parent 9d86da1 commit d8ccc81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proxy/server/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ func (s *TargetStream) Run(nonce uint32, replyChan chan *pb.ProxyReply) {
return nil
}
if err != nil {
s.CloseWith(err)
return err
}
// otherwise, this is a streamData reply
Expand Down

0 comments on commit d8ccc81

Please sign in to comment.