fix (pipes): silence EOF error

This comes back when an operation like Kubernetes Describe finishes;
hide it so we don't print as an error.
This commit is contained in:
Bryan Boreham
2020-05-06 09:05:04 +00:00
parent 323aa46d1c
commit 24197bc71e

View File

@@ -374,6 +374,9 @@ func (c *appClient) pipeConnection(id string, pipe xfer.Pipe) (bool, error) {
_, remote := pipe.Ends()
done, err := pipe.CopyToWebsocket(remote, conn)
if err == io.EOF {
return true, nil
}
return done, err
}