Fixes seven leaky .BeginInvoke() calls
parent
584c113836
commit
33133e23b1
|
@ -272,7 +272,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
|
|||
|
||||
if (asset != null)
|
||||
{
|
||||
handler.BeginInvoke(id, sender, asset, null, null);
|
||||
Util.FireAndForget(delegate { handler(id, sender, asset); });
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -211,7 +211,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
|
|||
|
||||
if (asset != null)
|
||||
{
|
||||
handler.BeginInvoke(id, sender, asset, null, null);
|
||||
Util.FireAndForget(delegate { handler(id, sender, asset); });
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -219,8 +219,8 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
|
|||
{
|
||||
if ((a != null) && (m_Cache != null))
|
||||
m_Cache.Cache(a);
|
||||
|
||||
handler.BeginInvoke(assetID, s, a, null, null);
|
||||
|
||||
Util.FireAndForget(delegate { handler(assetID, s, a); });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -457,6 +457,8 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
void SendInventoryComplete(IAsyncResult iar)
|
||||
{
|
||||
SendInventoryDelegate d = (SendInventoryDelegate)iar.AsyncState;
|
||||
d.EndInvoke(iar);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -622,6 +624,8 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
private void PurgeFolderCompleted(IAsyncResult iar)
|
||||
{
|
||||
PurgeFolderDelegate d = (PurgeFolderDelegate)iar.AsyncState;
|
||||
d.EndInvoke(iar);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -177,7 +177,7 @@ namespace OpenSim.Services.Connectors
|
|||
}
|
||||
else
|
||||
{
|
||||
handler.BeginInvoke(id, sender, asset, null, null);
|
||||
Util.FireAndForget(delegate { handler(id, sender, asset); });
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -461,6 +461,8 @@ namespace OpenSim.Services.Connectors
|
|||
|
||||
private void MoveItemsCompleted(IAsyncResult iar)
|
||||
{
|
||||
MoveItemsDelegate d = (MoveItemsDelegate)iar.AsyncState;
|
||||
d.EndInvoke(iar);
|
||||
}
|
||||
|
||||
public bool MoveItems(string userID, List<InventoryItemBase> items, UUID sessionID)
|
||||
|
|
|
@ -232,7 +232,7 @@ namespace OpenSim.Services.InventoryService
|
|||
m_log.WarnFormat("[INVENTORY SERVICE]: User {0} inventory not available", userID);
|
||||
}
|
||||
|
||||
callback.BeginInvoke(folders, items, null, null);
|
||||
Util.FireAndForget(delegate { callback(folders, items); });
|
||||
}
|
||||
|
||||
public InventoryCollection GetFolderContent(UUID userID, UUID folderID)
|
||||
|
|
Loading…
Reference in New Issue