Fix the return values for JsonDestroyStore, JsonRemoveValue, and JsonSetValue.

Fix the link message status when reading a notecard.
This commit is contained in:
Mic Bowman
2013-02-08 12:00:16 -08:00
parent c2bf91c5e3
commit 2b5eba9c74
3 changed files with 17 additions and 10 deletions

View File

@@ -239,7 +239,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
if (! m_enabled) return false;
lock (m_JsonValueStore)
m_JsonValueStore.Remove(storeID);
return m_JsonValueStore.Remove(storeID);
return true;
}
@@ -311,8 +311,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
try
{
lock (map)
if (map.SetValue(path,value,useJson))
return true;
return map.SetValue(path,value,useJson);
}
catch (Exception e)
{
@@ -344,8 +343,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
try
{
lock (map)
if (map.RemoveValue(path))
return true;
return map.RemoveValue(path);
}
catch (Exception e)
{