mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
minor cleanup
This commit is contained in:
@@ -72,7 +72,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
||||
{
|
||||
while (tries > 0)
|
||||
{
|
||||
RegionInfo[] regionInfos = new RegionInfo[] { };
|
||||
RegionInfo[] regionInfos = Array.Empty<RegionInfo>();
|
||||
int regionCount = 0;
|
||||
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
|
||||
webRequest.Timeout = 30000; //30 Second Timeout
|
||||
@@ -118,10 +118,10 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
||||
if (((HttpWebResponse)ex.Response).StatusCode == HttpStatusCode.NotFound)
|
||||
{
|
||||
if (!allowRegionless)
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
else
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
|
||||
if (regionCount > 0 || allowRegionless)
|
||||
|
||||
Reference in New Issue
Block a user