fix error

This commit is contained in:
xtaci
2019-12-18 15:50:09 +08:00
parent 61e830c4e8
commit 361ba7600d
-1
View File
@@ -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)
}