From cf6d36ecd525f6a58e90abe1e6fd86f50e6de6ba Mon Sep 17 00:00:00 2001 From: v2ray Date: Mon, 27 Jun 2016 00:04:28 +0200 Subject: [PATCH] remove unnecessary flush --- transport/internet/kcp/connection.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/transport/internet/kcp/connection.go b/transport/internet/kcp/connection.go index be9b8657f..0b15a3a0b 100644 --- a/transport/internet/kcp/connection.go +++ b/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()