fix wrong placement

httptests
UbitUmarov 2017-05-06 01:41:33 +01:00
parent d9038e650a
commit d26a9ed0b1
1 changed files with 1 additions and 2 deletions

View File

@ -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)