diff options
author | UbitUmarov | 2017-05-06 01:41:33 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-06 01:41:33 +0100 |
commit | d26a9ed0b18384d38c6070f7a7efdc61bcc7e75e (patch) | |
tree | 83200eecede76aa1b99bb74666d70d79bc7caa9a /OpenSim/Data | |
parent | MySQLConnector is not a MS product (diff) | |
download | opensim-SC_OLD-d26a9ed0b18384d38c6070f7a7efdc61bcc7e75e.zip opensim-SC_OLD-d26a9ed0b18384d38c6070f7a7efdc61bcc7e75e.tar.gz opensim-SC_OLD-d26a9ed0b18384d38c6070f7a7efdc61bcc7e75e.tar.bz2 opensim-SC_OLD-d26a9ed0b18384d38c6070f7a7efdc61bcc7e75e.tar.xz |
fix wrong placement
Diffstat (limited to 'OpenSim/Data')
-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) |