Fix UnackedBytes client stack statistic as seen in "show queues"

Bytes were being wrongly added again on a resend
This commit is contained in:
Justin Clark-Casey (justincc)
2011-01-17 23:45:25 +00:00
parent 37837850d3
commit 81552099d6
2 changed files with 3 additions and 3 deletions

View File

@@ -585,8 +585,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// Stats tracking
Interlocked.Increment(ref udpClient.PacketsSent);
if (isReliable)
Interlocked.Add(ref udpClient.UnackedBytes, outgoingPacket.Buffer.DataLength);
// Put the UDP payload on the wire
AsyncBeginSend(buffer);