aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-29 07:10:00 +0000
committerMelanie Thielker2008-11-29 07:10:00 +0000
commit1952a67ceb3f239d4f55656f1ca55de590556265 (patch)
tree8828b0688e1690d0534c356ff5590fbf4ecfffb4 /OpenSim/Region/ScriptEngine/Shared
parentStop attachments from twisting away. Thismakes attachments phantom, which (diff)
downloadopensim-SC_OLD-1952a67ceb3f239d4f55656f1ca55de590556265.zip
opensim-SC_OLD-1952a67ceb3f239d4f55656f1ca55de590556265.tar.gz
opensim-SC_OLD-1952a67ceb3f239d4f55656f1ca55de590556265.tar.bz2
opensim-SC_OLD-1952a67ceb3f239d4f55656f1ca55de590556265.tar.xz
Comment the ScriptSponsor and restore the indefinite lifetime for
scripts until that can be better debugged
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs8
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs6
2 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs
index 15604dc..036130d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs
@@ -50,10 +50,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
50 ILease lease = (ILease)base.InitializeLifetimeService(); 50 ILease lease = (ILease)base.InitializeLifetimeService();
51 if (lease.CurrentState == LeaseState.Initial) 51 if (lease.CurrentState == LeaseState.Initial)
52 { 52 {
53 //lease.InitialLeaseTime = TimeSpan.Zero; 53 lease.InitialLeaseTime = TimeSpan.Zero;
54 lease.InitialLeaseTime = TimeSpan.FromMinutes(1); 54// lease.InitialLeaseTime = TimeSpan.FromMinutes(1);
55 lease.SponsorshipTimeout = TimeSpan.FromMinutes(2); 55// lease.SponsorshipTimeout = TimeSpan.FromMinutes(2);
56 lease.RenewOnCallTime = TimeSpan.FromSeconds(2); 56// lease.RenewOnCallTime = TimeSpan.FromSeconds(2);
57 } 57 }
58 return lease; 58 return lease;
59 } 59 }
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index e664fb0..dccd143 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -210,9 +210,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
210 "SecondLife.Script"); 210 "SecondLife.Script");
211 211
212 // Add a sponsor to the script 212 // Add a sponsor to the script
213 ISponsor scriptSponsor = new ScriptSponsor(); 213// ISponsor scriptSponsor = new ScriptSponsor();
214 ILease lease = (ILease)RemotingServices.GetLifetimeService(m_Script as MarshalByRefObject); 214// ILease lease = (ILease)RemotingServices.GetLifetimeService(m_Script as MarshalByRefObject);
215 lease.Register(scriptSponsor); 215// lease.Register(scriptSponsor);
216 //m_ScriptSponsor = scriptSponsor; 216 //m_ScriptSponsor = scriptSponsor;
217 217
218 } 218 }