mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-26 21:13:13 +00:00
GC bug fix
This commit is contained in:
@ -546,7 +546,7 @@ namespace Esiur.Data
|
||||
/// <returns>Resource</returns>
|
||||
public static AsyncReply<IResource> ParseResource(byte[] data, uint offset)
|
||||
{
|
||||
return Warehouse.Get(data.GetUInt32(offset));
|
||||
return Warehouse.GetById(data.GetUInt32(offset));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -703,7 +703,7 @@ namespace Esiur.Data
|
||||
previous = new AsyncReply<IResource>(null);
|
||||
else if (result == ResourceComparisonResult.Local)
|
||||
{
|
||||
previous = Warehouse.Get(data.GetUInt32(offset));
|
||||
previous = Warehouse.GetById(data.GetUInt32(offset));
|
||||
offset += 4;
|
||||
}
|
||||
else if (result == ResourceComparisonResult.Distributed)
|
||||
@ -731,7 +731,7 @@ namespace Esiur.Data
|
||||
}
|
||||
else if (result == ResourceComparisonResult.Local)
|
||||
{
|
||||
current = Warehouse.Get(data.GetUInt32(offset));
|
||||
current = Warehouse.GetById(data.GetUInt32(offset));
|
||||
offset += 4;
|
||||
}
|
||||
else if (result == ResourceComparisonResult.Distributed)
|
||||
|
@ -89,7 +89,7 @@ namespace Esiur.Data
|
||||
{
|
||||
var key = Key.ToLower();
|
||||
|
||||
var toRemove = m_Variables.Where(x => x.Key.ToLower() == key);
|
||||
var toRemove = m_Variables.Where(x => x.Key.ToLower() == key).ToArray();
|
||||
|
||||
foreach (var item in toRemove)
|
||||
m_Variables.Remove(item);
|
||||
|
Reference in New Issue
Block a user