diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 77dcc6fe68..17dca986eb 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -29,7 +29,6 @@ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Remoting.Lifetime; -using System.Security.Permissions; using System.Text; using System.Threading; using Nini.Config; @@ -99,8 +98,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api AsyncCommands = new AsyncCommandManager(ScriptEngine); } + // Object never expires + public override Object InitializeLifetimeService() + { + ILease lease = (ILease)base.InitializeLifetimeService(); - + if (lease.CurrentState == LeaseState.Initial) + { + lease.InitialLeaseTime = TimeSpan.Zero; + } + return lease; + } protected void ScriptSleep(int delay) {