Ver Fonte

remove unnecessary flush

v2ray há 9 anos atrás
pai
commit
cf6d36ecd5
1 ficheiros alterados com 0 adições e 2 exclusões
  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()