Add the lifetime management back into the LSL_Api, since that will also

expire and take the scripts down
0.6.1-post-fixes
Melanie Thielker 2008-11-29 11:20:06 +00:00
parent fdd2388331
commit a00d346aab
1 changed files with 10 additions and 2 deletions

View File

@ -29,7 +29,6 @@ using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.Remoting.Lifetime; using System.Runtime.Remoting.Lifetime;
using System.Security.Permissions;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
using Nini.Config; using Nini.Config;
@ -99,8 +98,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
AsyncCommands = new AsyncCommandManager(ScriptEngine); 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) protected void ScriptSleep(int delay)
{ {