aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-10 05:42:02 +0000
committerMelanie Thielker2008-11-10 05:42:02 +0000
commit0d02f53f8706a6dff12927156f0028c374ae80d9 (patch)
treec3ba961173cb92b5cf924c56a2018cfbacb0e072 /OpenSim
parentAdd a MinTimerInterval, defaulted at 0.5s, to the scripting configuration (diff)
downloadopensim-SC_OLD-0d02f53f8706a6dff12927156f0028c374ae80d9.zip
opensim-SC_OLD-0d02f53f8706a6dff12927156f0028c374ae80d9.tar.gz
opensim-SC_OLD-0d02f53f8706a6dff12927156f0028c374ae80d9.tar.bz2
opensim-SC_OLD-0d02f53f8706a6dff12927156f0028c374ae80d9.tar.xz
Prevent AO from crashing the sim if the user logs out before the script
stops
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index f4da42f..6f9e0a0 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3492,6 +3492,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3492 m_host.AddScriptLPS(1); 3492 m_host.AddScriptLPS(1);
3493 UUID avatar = (UUID)id; 3493 UUID avatar = (UUID)id;
3494 ScenePresence presence = World.GetScenePresence(avatar); 3494 ScenePresence presence = World.GetScenePresence(avatar);
3495 if (presence == null)
3496 return "";
3497
3495 if (m_host.RegionHandle == presence.RegionHandle) 3498 if (m_host.RegionHandle == presence.RegionHandle)
3496 { 3499 {
3497 Dictionary<UUID, string> animationstateNames = AnimationSet.Animations.AnimStateNames; 3500 Dictionary<UUID, string> animationstateNames = AnimationSet.Animations.AnimStateNames;