Skip to content

Commit

Permalink
one more race-condition causing return
Browse files Browse the repository at this point in the history
  • Loading branch information
puellanivis committed Feb 6, 2024
1 parent 72aa403 commit 3ce4d4e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,6 @@ func (f *File) WriteTo(w io.Writer) (written int64, err error) {
select {
case readWork.cur <- writeWork:
case <-cancel:
return
}

// DO NOT return.
Expand Down

0 comments on commit 3ce4d4e

Please sign in to comment.