Adding an explicit close() and dispose() in the hope that it might help with assetserver issues.

afrisby
Brian McBee 2007-12-08 23:47:41 +00:00
parent 383eccc543
commit 890a7c2e80
1 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,8 @@ namespace OpenSim.Framework.Data.MySQL
asset.Name = (string)dbReader["name"]; asset.Name = (string)dbReader["name"];
asset.Type = (sbyte)dbReader["assetType"]; asset.Type = (sbyte)dbReader["assetType"];
} }
dbReader.Close();
cmd.Dispose();
} }
} }
catch (Exception) catch (Exception)
@ -122,6 +124,7 @@ namespace OpenSim.Framework.Data.MySQL
cmd.Parameters.AddWithValue("?temporary", asset.Temporary); cmd.Parameters.AddWithValue("?temporary", asset.Temporary);
cmd.Parameters.AddWithValue("?data", asset.Data); cmd.Parameters.AddWithValue("?data", asset.Data);
cmd.ExecuteNonQuery(); cmd.ExecuteNonQuery();
cmd.Dispose();
} }
} }