瀏覽代碼

remove unnecessary flush

v2ray 9 年之前
父節點
當前提交
cf6d36ecd5
共有 1 個文件被更改,包括 0 次插入2 次删除
  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()