diff options
author | Brian McBee | 2007-12-08 23:47:41 +0000 |
---|---|---|
committer | Brian McBee | 2007-12-08 23:47:41 +0000 |
commit | 890a7c2e80fccaa011f9a2d99b34d8d52d6a514b (patch) | |
tree | 96140fb379de8b86e7a4816a1578905c68359b14 /OpenSim/Framework | |
parent | hackish code to allow emptying of trash. This really should be done on the in... (diff) | |
download | opensim-SC_OLD-890a7c2e80fccaa011f9a2d99b34d8d52d6a514b.zip opensim-SC_OLD-890a7c2e80fccaa011f9a2d99b34d8d52d6a514b.tar.gz opensim-SC_OLD-890a7c2e80fccaa011f9a2d99b34d8d52d6a514b.tar.bz2 opensim-SC_OLD-890a7c2e80fccaa011f9a2d99b34d8d52d6a514b.tar.xz |
Adding an explicit close() and dispose() in the hope that it might help with assetserver issues.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Data.MySQL/MySQLAssetData.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs b/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs index 38d0a8f..19ae115 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs | |||
@@ -91,6 +91,8 @@ namespace OpenSim.Framework.Data.MySQL | |||
91 | asset.Name = (string)dbReader["name"]; | 91 | asset.Name = (string)dbReader["name"]; |
92 | asset.Type = (sbyte)dbReader["assetType"]; | 92 | asset.Type = (sbyte)dbReader["assetType"]; |
93 | } | 93 | } |
94 | dbReader.Close(); | ||
95 | cmd.Dispose(); | ||
94 | } | 96 | } |
95 | } | 97 | } |
96 | catch (Exception) | 98 | catch (Exception) |
@@ -122,6 +124,7 @@ namespace OpenSim.Framework.Data.MySQL | |||
122 | cmd.Parameters.AddWithValue("?temporary", asset.Temporary); | 124 | cmd.Parameters.AddWithValue("?temporary", asset.Temporary); |
123 | cmd.Parameters.AddWithValue("?data", asset.Data); | 125 | cmd.Parameters.AddWithValue("?data", asset.Data); |
124 | cmd.ExecuteNonQuery(); | 126 | cmd.ExecuteNonQuery(); |
127 | cmd.Dispose(); | ||
125 | } | 128 | } |
126 | } | 129 | } |
127 | 130 | ||