Explorar el Código

remove unnecessary flush

v2ray hace 9 años
padre
commit
cf6d36ecd5
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      transport/internet/kcp/connection.go

+ 0 - 2
transport/internet/kcp/connection.go

@@ -148,8 +148,6 @@ func (this *Connection) Write(b []byte) (int, error) {
 		this.kcpAccess.Lock()
 		nBytes := this.kcp.Send(b[totalWritten:])
 		if nBytes > 0 {
-			this.kcp.current = this.Elapsed()
-			this.kcp.flush()
 			totalWritten += nBytes
 			if totalWritten == len(b) {
 				this.kcpAccess.Unlock()