Quellcode durchsuchen

remove unnecessary flush

v2ray vor 9 Jahren
Ursprung
Commit
cf6d36ecd5
1 geänderte Dateien mit 0 neuen und 2 gelöschten Zeilen
  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()