Merge branch 'master' of /home/opensim/var/repo/opensim

integration
BlueWall 2012-04-25 13:43:48 -04:00
commit a153a3cf3b
1 changed files with 24 additions and 15 deletions

View File

@ -163,6 +163,8 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
return; return;
} }
try
{
m_comms.RegisterScriptInvocation(this,"JsonCreateStore"); m_comms.RegisterScriptInvocation(this,"JsonCreateStore");
m_comms.RegisterScriptInvocation(this,"JsonDestroyStore"); m_comms.RegisterScriptInvocation(this,"JsonDestroyStore");
@ -186,6 +188,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
m_comms.RegisterScriptInvocation(this,"JsonRemoveValue"); m_comms.RegisterScriptInvocation(this,"JsonRemoveValue");
} }
catch (Exception e)
{
// See http://opensimulator.org/mantis/view.php?id=5971 for more information
m_log.WarnFormat("[JsonStroreScripts] script method registration failed; {0}",e.Message);
m_enabled = false;
}
}
} }
/// ----------------------------------------------------------------- /// -----------------------------------------------------------------