aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLGridData.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLGridData.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Data/MySQL/MySQLGridData.cs b/OpenSim/Data/MySQL/MySQLGridData.cs
index 26a8591..b6d481c 100644
--- a/OpenSim/Data/MySQL/MySQLGridData.cs
+++ b/OpenSim/Data/MySQL/MySQLGridData.cs
@@ -403,10 +403,10 @@ namespace OpenSim.Data.MySQL
403 /// <returns>The sim profile</returns> 403 /// <returns>The sim profile</returns>
404 override public RegionProfileData GetProfileByString(string regionName) 404 override public RegionProfileData GetProfileByString(string regionName)
405 { 405 {
406 MySQLSuperManager dbm = GetLockedConnection();
407
408 if (regionName.Length > 2) 406 if (regionName.Length > 2)
409 { 407 {
408 MySQLSuperManager dbm = GetLockedConnection();
409
410 try 410 try
411 { 411 {
412 Dictionary<string, string> param = new Dictionary<string, string>(); 412 Dictionary<string, string> param = new Dictionary<string, string>();
@@ -436,8 +436,8 @@ namespace OpenSim.Data.MySQL
436 dbm.Release(); 436 dbm.Release();
437 437
438 } 438 }
439 dbm.Release();
439 } 440 }
440 dbm.Release();
441 m_log.Error("[GRID DB]: Searched for a Region Name shorter then 3 characters"); 441 m_log.Error("[GRID DB]: Searched for a Region Name shorter then 3 characters");
442 return null; 442 return null;
443 } 443 }