mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 11:25:39 +08:00
cosmetics
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user