diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLInventoryData.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLInventoryData.cs b/OpenSim/Data/MySQL/MySQLInventoryData.cs index 3216544..c93af0b 100644 --- a/OpenSim/Data/MySQL/MySQLInventoryData.cs +++ b/OpenSim/Data/MySQL/MySQLInventoryData.cs | |||
@@ -504,8 +504,6 @@ namespace OpenSim.Data.MySQL | |||
504 | result.Dispose(); | 504 | result.Dispose(); |
505 | } | 505 | } |
506 | 506 | ||
507 | dbcon.Close(); | ||
508 | |||
509 | using (MySqlCommand result = new MySqlCommand("update inventoryfolders set version=version+1 where folderID = ?folderID", dbcon)) | 507 | using (MySqlCommand result = new MySqlCommand("update inventoryfolders set version=version+1 where folderID = ?folderID", dbcon)) |
510 | { | 508 | { |
511 | result.Parameters.AddWithValue("?folderID", item.Folder.ToString()); | 509 | result.Parameters.AddWithValue("?folderID", item.Folder.ToString()); |
@@ -513,6 +511,7 @@ namespace OpenSim.Data.MySQL | |||
513 | lock (m_dbLock) | 511 | lock (m_dbLock) |
514 | result.ExecuteNonQuery(); | 512 | result.ExecuteNonQuery(); |
515 | } | 513 | } |
514 | dbcon.Close(); | ||
516 | } | 515 | } |
517 | } | 516 | } |
518 | catch (MySqlException e) | 517 | catch (MySqlException e) |