From 890a7c2e80fccaa011f9a2d99b34d8d52d6a514b Mon Sep 17 00:00:00 2001 From: Brian McBee Date: Sat, 8 Dec 2007 23:47:41 +0000 Subject: [PATCH] Adding an explicit close() and dispose() in the hope that it might help with assetserver issues. --- OpenSim/Framework/Data.MySQL/MySQLAssetData.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs b/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs index 38d0a8fc3d..19ae115b68 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs @@ -91,6 +91,8 @@ namespace OpenSim.Framework.Data.MySQL asset.Name = (string)dbReader["name"]; asset.Type = (sbyte)dbReader["assetType"]; } + dbReader.Close(); + cmd.Dispose(); } } catch (Exception) @@ -122,6 +124,7 @@ namespace OpenSim.Framework.Data.MySQL cmd.Parameters.AddWithValue("?temporary", asset.Temporary); cmd.Parameters.AddWithValue("?data", asset.Data); cmd.ExecuteNonQuery(); + cmd.Dispose(); } }