Return a UUID.Zero if the asset fails to upload

avinationmerge
Tom Grimshaw 2010-06-28 07:09:05 -07:00
parent a5a1df68c2
commit 06fa038875
1 changed files with 4 additions and 1 deletions

View File

@ -144,7 +144,10 @@ namespace OpenSim.Services.AssetService
public string Store(AssetBase asset)
{
//m_log.DebugFormat("[ASSET SERVICE]: Store asset {0} {1}", asset.Name, asset.ID);
m_Database.StoreAsset(asset);
if (!m_Database.StoreAsset(asset))
{
return UUID.Zero.ToString();
}
return asset.ID;
}