mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
make more use of stream.CopyTo on (de)compressors, plus several cosmetics
This commit is contained in:
@@ -515,7 +515,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
|
||||
return null;
|
||||
}
|
||||
|
||||
private readonly string stringUUIDZero = UUID.Zero.ToString();
|
||||
public string Store(AssetBase asset)
|
||||
{
|
||||
string id;
|
||||
@@ -527,7 +526,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
|
||||
id = StoreForeign(asset);
|
||||
if (m_Cache != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(id) && !id.Equals(stringUUIDZero))
|
||||
if (!string.IsNullOrEmpty(id) && !id.Equals(UUID.ZeroString))
|
||||
m_Cache.Cache(asset);
|
||||
}
|
||||
return id;
|
||||
|
||||
Reference in New Issue
Block a user