Skip to content

Commit

Permalink
properly handle success result for live stream
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuptcov committed May 27, 2024
1 parent b434ee1 commit 2e96d3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/client/live/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ func (c *Client) Stream(r io.Reader) error {
default:
bytesRead, err := r.Read(chunk)
switch {
case err == nil:
// do nothing
case strings.Contains(err.Error(), FatalReadSocketErr):
klog.V(1).Infof("Fatal socket error: %v\n", err)
klog.V(6).Infof("live.listen() LEAVE\n")
Expand Down

0 comments on commit 2e96d3d

Please sign in to comment.