aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid')
-rw-r--r--OpenSim/Grid/GridServer/GridManager.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Grid/GridServer/GridManager.cs b/OpenSim/Grid/GridServer/GridManager.cs
index 5ca8cf7..7b41f6e 100644
--- a/OpenSim/Grid/GridServer/GridManager.cs
+++ b/OpenSim/Grid/GridServer/GridManager.cs
@@ -333,7 +333,17 @@ namespace OpenSim.Grid.GridServer
333 { 333 {
334 try 334 try
335 { 335 {
336 DataResponse insertResponse = kvp.Value.AddProfile(sim); 336 DataResponse insertResponse;
337
338 if( existingSim == null )
339 {
340 insertResponse = kvp.Value.AddProfile(sim);
341 }
342 else
343 {
344 insertResponse = kvp.Value.UpdateProfile(sim);
345 }
346
337 switch (insertResponse) 347 switch (insertResponse)
338 { 348 {
339 case DataResponse.RESPONSE_OK: 349 case DataResponse.RESPONSE_OK: