fix a few wrong placement ( this is a test by the way )

httptests
UbitUmarov 2017-05-06 01:47:26 +01:00
parent d26a9ed0b1
commit 025bef4e07
1 changed files with 7 additions and 7 deletions

View File

@ -131,10 +131,10 @@ namespace OpenSim.Data.MySQL
items.Add(item); items.Add(item);
} }
dbcon.Close();
return items; return items;
} }
} }
dbcon.Close();
} }
} }
} }
@ -172,10 +172,10 @@ namespace OpenSim.Data.MySQL
while (reader.Read()) while (reader.Read())
items.Add(readInventoryFolder(reader)); items.Add(readInventoryFolder(reader));
dbcon.Close();
return items; return items;
} }
} }
dbcon.Close();
} }
} }
} }
@ -224,10 +224,10 @@ namespace OpenSim.Data.MySQL
if (items.Count > 0) if (items.Count > 0)
rootFolder = items[0]; rootFolder = items[0];
dbcon.Close();
return rootFolder; return rootFolder;
} }
} }
dbcon.Close();
} }
} }
} }
@ -265,10 +265,10 @@ namespace OpenSim.Data.MySQL
while (reader.Read()) while (reader.Read())
items.Add(readInventoryFolder(reader)); items.Add(readInventoryFolder(reader));
dbcon.Close();
return items; return items;
} }
} }
dbcon.Close();
} }
} }
} }
@ -357,10 +357,10 @@ namespace OpenSim.Data.MySQL
if (reader.Read()) if (reader.Read())
item = readInventoryItem(reader); item = readInventoryItem(reader);
dbcon.Close();
return item; return item;
} }
} }
dbcon.Close();
} }
} }
} }
@ -423,10 +423,10 @@ namespace OpenSim.Data.MySQL
if (reader.Read()) if (reader.Read())
folder = readInventoryFolder(reader); folder = readInventoryFolder(reader);
dbcon.Close();
return folder; return folder;
} }
} }
dbcon.Close();
} }
} }
} }
@ -899,10 +899,10 @@ namespace OpenSim.Data.MySQL
if (item != null) if (item != null)
list.Add(item); list.Add(item);
} }
dbcon.Close();
return list; return list;
} }
} }
dbcon.Close();
} }
} }
catch (Exception e) catch (Exception e)