remove unnecessary conversion

This commit is contained in:
v2ray
2016-06-25 23:18:05 +02:00
parent 0812d7f9be
commit d37c01905c
+1 -1
View File
@@ -82,7 +82,7 @@ func NewConnection(conv uint32, writerCloser io.WriteCloser, local *net.UDPAddr,
conn.kcp = NewKCP(conv, mtu, effectiveConfig.GetSendingWindowSize(), effectiveConfig.GetReceivingWindowSize(), conn.output)
conn.kcp.NoDelay(effectiveConfig.Tti, 2, effectiveConfig.Congestion)
conn.kcp.current = conn.Elapsed()
conn.writeBufferSize = uint32(effectiveConfig.WriteBuffer) / effectiveConfig.Mtu
conn.writeBufferSize = effectiveConfig.WriteBuffer / effectiveConfig.Mtu
go conn.updateTask()