Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lesismal committed Jan 21, 2024
1 parent f8e2f8d commit aa6daaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sendfile_std.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (c *Conn) Sendfile(f *os.File, remain int64) (written int64, err error) {
if nw < 0 {
nw = 0
}
if c.p.g.onWrittenSize != nil && n > 0 {
if c.p.g.onWrittenSize != nil && nw > 0 {
c.p.g.onWrittenSize(c, nil, nw)
}
remain -= int64(nw)
Expand Down

0 comments on commit aa6daaf

Please sign in to comment.