aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Grid/GridServerPostHandler.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2009-10-05 20:20:00 +0100
committerJustin Clark-Casey (justincc)2009-10-05 20:20:00 +0100
commit0f93ea5d9579e81df48c3d800bb0bb1d6d3bdc2f (patch)
treee0a7033458b4bb0545f4c7f7d8aecc445fd276b3 /OpenSim/Server/Handlers/Grid/GridServerPostHandler.cs
parentchange default ports for inventory and grid connectors in example .ini files ... (diff)
parentFixed bug introduced in one of the last commits. (diff)
downloadopensim-SC_OLD-0f93ea5d9579e81df48c3d800bb0bb1d6d3bdc2f.zip
opensim-SC_OLD-0f93ea5d9579e81df48c3d800bb0bb1d6d3bdc2f.tar.gz
opensim-SC_OLD-0f93ea5d9579e81df48c3d800bb0bb1d6d3bdc2f.tar.bz2
opensim-SC_OLD-0f93ea5d9579e81df48c3d800bb0bb1d6d3bdc2f.tar.xz
Merge branch 'master' of ssh://justincc@opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Server/Handlers/Grid/GridServerPostHandler.cs')
-rw-r--r--OpenSim/Server/Handlers/Grid/GridServerPostHandler.cs18
1 files changed, 14 insertions, 4 deletions
diff --git a/OpenSim/Server/Handlers/Grid/GridServerPostHandler.cs b/OpenSim/Server/Handlers/Grid/GridServerPostHandler.cs
index e22328d..08edcbf 100644
--- a/OpenSim/Server/Handlers/Grid/GridServerPostHandler.cs
+++ b/OpenSim/Server/Handlers/Grid/GridServerPostHandler.cs
@@ -137,11 +137,21 @@ namespace OpenSim.Server.Handlers.Grid
137 } 137 }
138 138
139 Dictionary<string, object> rinfoData = new Dictionary<string, object>(); 139 Dictionary<string, object> rinfoData = new Dictionary<string, object>();
140 foreach (KeyValuePair<string, string> kvp in request) 140 GridRegion rinfo = null;
141 rinfoData[kvp.Key] = kvp.Value; 141 try
142 GridRegion rinfo = new GridRegion(rinfoData); 142 {
143 foreach (KeyValuePair<string, string> kvp in request)
144 rinfoData[kvp.Key] = kvp.Value;
145 rinfo = new GridRegion(rinfoData);
146 }
147 catch (Exception e)
148 {
149 m_log.DebugFormat("[GRID HANDLER]: exception unpacking region data: {0}", e);
150 }
143 151
144 bool result = m_GridService.RegisterRegion(scopeID, rinfo); 152 bool result = false;
153 if (rinfo != null)
154 result = m_GridService.RegisterRegion(scopeID, rinfo);
145 155
146 if (result) 156 if (result)
147 return SuccessResult(); 157 return SuccessResult();