avoid duplicated udpbuffer free that may still happen

This commit is contained in:
UbitUmarov
2020-03-04 22:39:44 +00:00
parent 8728e4cf2f
commit 1df06f459a
4 changed files with 8 additions and 7 deletions

View File

@@ -1188,8 +1188,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
SyncSend(buffer);
// Keep track of when this packet was sent out (right now)
int enow = Environment.TickCount & Int32.MaxValue;
Interlocked.Exchange(ref outgoingPacket.TickCount, enow);
Interlocked.Exchange(ref outgoingPacket.TickCount, Environment.TickCount & Int32.MaxValue);
if (outgoingPacket.UnackedMethod == null)
FreeUDPBuffer(buffer);