mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
a few changes to EstateDataRemoteConnector, LoadEstateSettings can not be fatal so work around it
This commit is contained in:
@@ -194,19 +194,16 @@ namespace OpenSim.Server.Handlers
|
||||
|
||||
if (!string.IsNullOrEmpty(region))
|
||||
{
|
||||
UUID regionID = UUID.Zero;
|
||||
if (UUID.TryParse(region, out regionID))
|
||||
if (UUID.TryParse(region, out UUID regionID))
|
||||
{
|
||||
string create = (string)httpRequest.Query["create"];
|
||||
bool createYN = false;
|
||||
Boolean.TryParse(create, out createYN);
|
||||
bool.TryParse(create, out bool createYN);
|
||||
estate = m_EstateService.LoadEstateSettings(regionID, createYN);
|
||||
}
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(eid))
|
||||
{
|
||||
int id = 0;
|
||||
if (Int32.TryParse(eid, out id))
|
||||
if (int.TryParse(eid, out int id))
|
||||
estate = m_EstateService.LoadEstateSettings(id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user