From 7d58b73bbcef148cdcd57b9a2796331c6497c397 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 6 Jun 2017 21:55:47 +0100 Subject: some changes on pollevent --- .../Region/CoreModules/World/Land/LandManagementModule.cs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'OpenSim/Region/CoreModules') diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index a2c7c83..c7e58e5 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs @@ -1719,26 +1719,23 @@ namespace OpenSim.Region.CoreModules.World.Land private void EventManagerOnRegisterCaps(UUID agentID, Caps caps) { - //string capsBase = "/CAPS/" + UUID.Random(); - string capsBase = "/CAPS/" + caps.CapsObjectPath; + string cap = "/CAPS/" + UUID.Random(); caps.RegisterHandler( "RemoteParcelRequest", new RestStreamHandler( - "POST", - capsBase, + "POST", cap, (request, path, param, httpRequest, httpResponse) => RemoteParcelRequest(request, path, param, agentID, caps), "RemoteParcelRequest", agentID.ToString())); - UUID parcelCapID = UUID.Random(); + cap = "/CAPS/" + UUID.Random(); caps.RegisterHandler( "ParcelPropertiesUpdate", new RestStreamHandler( - "POST", - "/CAPS/" + parcelCapID, - (request, path, param, httpRequest, httpResponse) - => ProcessPropertiesUpdate(request, path, param, agentID, caps), + "POST", cap, + (request, path, param, httpRequest, httpResponse) + => ProcessPropertiesUpdate(request, path, param, agentID, caps), "ParcelPropertiesUpdate", agentID.ToString())); } -- cgit v1.1