diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLInventoryData.cs | 14 |
1 files changed, 7 insertions, 7 deletions
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 | |||
131 | items.Add(item); | 131 | items.Add(item); |
132 | } | 132 | } |
133 | 133 | ||
134 | dbcon.Close(); | ||
134 | return items; | 135 | return items; |
135 | } | 136 | } |
136 | } | 137 | } |
137 | dbcon.Close(); | ||
138 | } | 138 | } |
139 | } | 139 | } |
140 | } | 140 | } |
@@ -172,10 +172,10 @@ namespace OpenSim.Data.MySQL | |||
172 | while (reader.Read()) | 172 | while (reader.Read()) |
173 | items.Add(readInventoryFolder(reader)); | 173 | items.Add(readInventoryFolder(reader)); |
174 | 174 | ||
175 | dbcon.Close(); | ||
175 | return items; | 176 | return items; |
176 | } | 177 | } |
177 | } | 178 | } |
178 | dbcon.Close(); | ||
179 | } | 179 | } |
180 | } | 180 | } |
181 | } | 181 | } |
@@ -224,10 +224,10 @@ namespace OpenSim.Data.MySQL | |||
224 | if (items.Count > 0) | 224 | if (items.Count > 0) |
225 | rootFolder = items[0]; | 225 | rootFolder = items[0]; |
226 | 226 | ||
227 | dbcon.Close(); | ||
227 | return rootFolder; | 228 | return rootFolder; |
228 | } | 229 | } |
229 | } | 230 | } |
230 | dbcon.Close(); | ||
231 | } | 231 | } |
232 | } | 232 | } |
233 | } | 233 | } |
@@ -265,10 +265,10 @@ namespace OpenSim.Data.MySQL | |||
265 | while (reader.Read()) | 265 | while (reader.Read()) |
266 | items.Add(readInventoryFolder(reader)); | 266 | items.Add(readInventoryFolder(reader)); |
267 | 267 | ||
268 | dbcon.Close(); | ||
268 | return items; | 269 | return items; |
269 | } | 270 | } |
270 | } | 271 | } |
271 | dbcon.Close(); | ||
272 | } | 272 | } |
273 | } | 273 | } |
274 | } | 274 | } |
@@ -357,10 +357,10 @@ namespace OpenSim.Data.MySQL | |||
357 | if (reader.Read()) | 357 | if (reader.Read()) |
358 | item = readInventoryItem(reader); | 358 | item = readInventoryItem(reader); |
359 | 359 | ||
360 | dbcon.Close(); | ||
360 | return item; | 361 | return item; |
361 | } | 362 | } |
362 | } | 363 | } |
363 | dbcon.Close(); | ||
364 | } | 364 | } |
365 | } | 365 | } |
366 | } | 366 | } |
@@ -423,10 +423,10 @@ namespace OpenSim.Data.MySQL | |||
423 | if (reader.Read()) | 423 | if (reader.Read()) |
424 | folder = readInventoryFolder(reader); | 424 | folder = readInventoryFolder(reader); |
425 | 425 | ||
426 | dbcon.Close(); | ||
426 | return folder; | 427 | return folder; |
427 | } | 428 | } |
428 | } | 429 | } |
429 | dbcon.Close(); | ||
430 | } | 430 | } |
431 | } | 431 | } |
432 | } | 432 | } |
@@ -899,10 +899,10 @@ namespace OpenSim.Data.MySQL | |||
899 | if (item != null) | 899 | if (item != null) |
900 | list.Add(item); | 900 | list.Add(item); |
901 | } | 901 | } |
902 | dbcon.Close(); | ||
902 | return list; | 903 | return list; |
903 | } | 904 | } |
904 | } | 905 | } |
905 | dbcon.Close(); | ||
906 | } | 906 | } |
907 | } | 907 | } |
908 | catch (Exception e) | 908 | catch (Exception e) |