mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Attempt to give script objects a proper lease time (DNE and xengine). Relies on GC. Also removed lease for LSL_Api as it strictly speaking should not be MarshalByRef. Or should it? If so I broke scripting! :)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Remoting.Lifetime;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenSim.Region.ScriptEngine.Shared.Api.Runtime
|
||||
{
|
||||
public class ScriptSponsor: ISponsor
|
||||
{
|
||||
// In theory: I execute, therefore I am.
|
||||
// If GC collects this class then sponsorship will expire
|
||||
public TimeSpan Renewal(ILease lease)
|
||||
{
|
||||
return TimeSpan.FromMinutes(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user