Skip to content

Commit

Permalink
client: squelch errors on cleanly closed pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed May 2, 2018
1 parent cafcb89 commit aad596b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/fs_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ func (f *FileSystem) logs(conn io.ReadWriteCloser) {
go func() {
for {
if _, err := conn.Read(nil); err != nil {
if err == io.EOF {
if err == io.EOF || err == io.ErrClosedPipe {
cancel()
return
}
Expand Down

0 comments on commit aad596b

Please sign in to comment.