From 025bef4e07fa134fe93c56abe7a9e9b3006413e1 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 6 May 2017 01:47:26 +0100 Subject: fix a few wrong placement ( this is a test by the way ) --- OpenSim/Data/MySQL/MySQLInventoryData.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Data/MySQL/MySQLInventoryData.cs b/OpenSim/Data/MySQL/MySQLInventoryData.cs index c93af0b..cc787cc 100644 --- a/OpenSim/Data/MySQL/MySQLInventoryData.cs +++ b/OpenSim/Data/MySQL/MySQLInventoryData.cs @@ -131,10 +131,10 @@ namespace OpenSim.Data.MySQL items.Add(item); } + dbcon.Close(); return items; } } - dbcon.Close(); } } } @@ -172,10 +172,10 @@ namespace OpenSim.Data.MySQL while (reader.Read()) items.Add(readInventoryFolder(reader)); + dbcon.Close(); return items; } } - dbcon.Close(); } } } @@ -224,10 +224,10 @@ namespace OpenSim.Data.MySQL if (items.Count > 0) rootFolder = items[0]; + dbcon.Close(); return rootFolder; } } - dbcon.Close(); } } } @@ -265,10 +265,10 @@ namespace OpenSim.Data.MySQL while (reader.Read()) items.Add(readInventoryFolder(reader)); + dbcon.Close(); return items; } } - dbcon.Close(); } } } @@ -357,10 +357,10 @@ namespace OpenSim.Data.MySQL if (reader.Read()) item = readInventoryItem(reader); + dbcon.Close(); return item; } } - dbcon.Close(); } } } @@ -423,10 +423,10 @@ namespace OpenSim.Data.MySQL if (reader.Read()) folder = readInventoryFolder(reader); + dbcon.Close(); return folder; } } - dbcon.Close(); } } } @@ -899,10 +899,10 @@ namespace OpenSim.Data.MySQL if (item != null) list.Add(item); } + dbcon.Close(); return list; } } - dbcon.Close(); } } catch (Exception e) -- cgit v1.1