Add some conditionals to references to the WorldComm module, so that the

module can be disabled without crashing the sim
This commit is contained in:
Melanie
2009-11-28 09:23:26 +00:00
parent e7333515d9
commit 9fd9211a38
2 changed files with 18 additions and 8 deletions

View File

@@ -236,7 +236,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
iHttpReq.StopHttpRequest(localID, itemID);
IWorldComm comms = engine.World.RequestModuleInterface<IWorldComm>();
comms.DeleteListener(itemID);
if (comms != null)
comms.DeleteListener(itemID);
IXMLRPC xmlrpc = engine.World.RequestModuleInterface<IXMLRPC>();
xmlrpc.DeleteChannels(itemID);