From a993d0d3351f15510e404cc09951723cf5c435fb Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Sat, 12 Jan 2008 10:25:08 +0000 Subject: ScriptServer communication is ok. Script is creatd on onrez. But since it can not access Scene it sort of crashes right away ;) Added some sample placeholders for implementing rest of LSL events. --- OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs index e403385..1e4dc99 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs @@ -202,6 +202,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine public void CheckHttpRequests() { + if (m_ScriptEngine.World == null) + return; + IHttpRequests iHttpReq = m_ScriptEngine.World.RequestModuleInterface(); @@ -241,6 +244,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine public void CheckXMLRPCRequests() { + if (m_ScriptEngine.World == null) + return; + IXMLRPC xmlrpc = m_ScriptEngine.World.RequestModuleInterface(); if (xmlrpc != null) @@ -266,6 +272,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine public void CheckListeners() { + if (m_ScriptEngine.World == null) + return; IWorldComm comms = m_ScriptEngine.World.RequestModuleInterface(); while (comms.HasMessages()) -- cgit v1.1