make some use of frozendicionaries on xml processors

This commit is contained in:
UbitUmarov
2024-05-08 19:14:32 +01:00
parent 5330c8fcca
commit 1736b6a8a0
5 changed files with 95 additions and 130 deletions

View File

@@ -292,7 +292,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
int nbytes =
await m_udpSocket.ReceiveFromAsync(buf.Data.AsMemory(), SocketFlags.None, workSktAddress, InboundCancellationSource.Token).ConfigureAwait(false);
if (!m_IsRunningInbound)
if (!m_IsRunningInbound || InboundCancellationSource.IsCancellationRequested)
{
FreeUDPBuffer(buf);
return;
@@ -302,7 +302,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
int startTick = Util.EnvironmentTickCount();
buf.RemoteEndPoint = Util.GetEndPoint(workSktAddress);;
buf.RemoteEndPoint = Util.GetEndPoint(workSktAddress);
buf.DataLength = nbytes;
UdpReceives++;