Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Dec 18, 2019
1 parent 61e830c commit 361ba76
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion generic/rawcopy_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func rawCopy(dst io.Writer, src *net.TCPConn, ctrl *CopyControl) (written int64,
ctrl.Lock()
nw, ew := dst.Write(buf[0:nr])
ctrl.Unlock()
buf = nil
if nw > 0 {
written += int64(nw)
}
Expand Down

0 comments on commit 361ba76

Please sign in to comment.