From d26a9ed0b18384d38c6070f7a7efdc61bcc7e75e Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 6 May 2017 01:41:33 +0100 Subject: [PATCH] fix wrong placement --- OpenSim/Data/MySQL/MySQLInventoryData.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenSim/Data/MySQL/MySQLInventoryData.cs b/OpenSim/Data/MySQL/MySQLInventoryData.cs index 3216544e54..c93af0b439 100644 --- a/OpenSim/Data/MySQL/MySQLInventoryData.cs +++ b/OpenSim/Data/MySQL/MySQLInventoryData.cs @@ -504,8 +504,6 @@ namespace OpenSim.Data.MySQL result.Dispose(); } - dbcon.Close(); - using (MySqlCommand result = new MySqlCommand("update inventoryfolders set version=version+1 where folderID = ?folderID", dbcon)) { result.Parameters.AddWithValue("?folderID", item.Folder.ToString()); @@ -513,6 +511,7 @@ namespace OpenSim.Data.MySQL lock (m_dbLock) result.ExecuteNonQuery(); } + dbcon.Close(); } } catch (MySqlException e)