mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Unpacking the mess with OtherRegionUp, so we can have a real cache of the neighbours in the grid service modules.
This commit is contained in:
@@ -36,6 +36,7 @@ using OpenSim.Server.Handlers.Base;
|
||||
using OpenSim.Services.Interfaces;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Framework.Servers.HttpServer;
|
||||
using GridRegion = OpenSim.Services.Interfaces.GridRegion;
|
||||
|
||||
using OpenMetaverse;
|
||||
using OpenMetaverse.StructuredData;
|
||||
@@ -148,11 +149,14 @@ namespace OpenSim.Server.Handlers.Neighbour
|
||||
}
|
||||
|
||||
// Finally!
|
||||
bool success = m_NeighbourService.HelloNeighbour(regionhandle, aRegion);
|
||||
|
||||
GridRegion thisRegion = m_NeighbourService.HelloNeighbour(regionhandle, aRegion);
|
||||
|
||||
OSDMap resp = new OSDMap(1);
|
||||
|
||||
resp["success"] = OSD.FromBoolean(success);
|
||||
if (thisRegion != null)
|
||||
resp["success"] = OSD.FromBoolean(true);
|
||||
else
|
||||
resp["success"] = OSD.FromBoolean(false);
|
||||
|
||||
httpResponse.StatusCode = (int)HttpStatusCode.OK;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user