Amend Justin's last commit regarding the new config var ServiceVersion. The section may not exist at all.

TeleportWork
Diva Canto 2013-08-02 17:38:08 -07:00
parent fdfc951744
commit 847c01f406
1 changed files with 2 additions and 1 deletions

View File

@ -84,10 +84,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
public void InitialiseService(IConfigSource configSource)
{
ServiceVersion = "SIMULATION/0.2";
IConfig config = configSource.Configs["SimulationService"];
if (config != null)
{
ServiceVersion = config.GetString("ConnectorProtocolVersion", "SIMULATION/0.2");
ServiceVersion = config.GetString("ConnectorProtocolVersion", ServiceVersion);
if (ServiceVersion != "SIMULATION/0.1" && ServiceVersion != "SIMULATION/0.2")
throw new Exception(string.Format("Invalid ConnectorProtocolVersion {0}", ServiceVersion));