mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
Adding an explicit close() and dispose() in the hope that it might help with assetserver issues.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user