cosmetics

This commit is contained in:
UbitUmarov
2026-03-15 18:22:50 +00:00
parent 0120e62250
commit da5f1b3f7e
18 changed files with 71 additions and 82 deletions

View File

@@ -45,12 +45,6 @@ using Caps=OpenSim.Framework.Capabilities.Caps;
namespace OpenSim.Region.ClientStack.Linden
{
public struct QueueItem
{
public int id;
public OSDMap body;
}
[Mono.Addins.Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "EventQueueGetModule")]
public partial class EventQueueGetModule : IEventQueue, INonSharedRegionModule
{

View File

@@ -347,13 +347,7 @@ namespace OpenSim.Region.ClientStack.Linden
GridInfo ginfo = scene.SceneGridInfo;
lock (m_features)
{
OSDMap extrasMap;
if (m_features.TryGetValue("OpenSimExtras", out OSD extra))
extrasMap = extra as OSDMap;
else
{
extrasMap = new OSDMap();
}
OSDMap extrasMap = m_features.TryGetOSDMap("OpenSimExtras", out OSDMap extra) ? extra : new OSDMap();
foreach (string key in extraFeatures.Keys)
{

View File

@@ -246,7 +246,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
m_IsRunningInbound = true;
// kick start the receiver tasks dance.
Task.Run(AsyncBeginReceive).ConfigureAwait(false);
_ = Task.Run(AsyncBeginReceive);
}
}
@@ -280,7 +280,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
m_IsRunningOutbound = false;
}
private async void AsyncBeginReceive()
private async Task AsyncBeginReceive()
{
SocketAddress workSktAddress = new(m_udpSocket.AddressFamily);
while (m_IsRunningInbound)