remove unnecessary conversion

pull/215/head
v2ray 9 years ago
parent 0812d7f9be
commit d37c01905c
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -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()

Loading…
Cancel
Save