diff options
author | Homer Horwitz | 2008-09-18 20:15:04 +0000 |
---|---|---|
committer | Homer Horwitz | 2008-09-18 20:15:04 +0000 |
commit | e2564f25639fc873fd95fb14118453659a3504c3 (patch) | |
tree | cf72b07729e75e1b5a583f46929eb0c6e27cd638 /OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs | |
parent | - Add Dispose method to IRegionDataStore (diff) | |
download | opensim-SC_OLD-e2564f25639fc873fd95fb14118453659a3504c3.zip opensim-SC_OLD-e2564f25639fc873fd95fb14118453659a3504c3.tar.gz opensim-SC_OLD-e2564f25639fc873fd95fb14118453659a3504c3.tar.bz2 opensim-SC_OLD-e2564f25639fc873fd95fb14118453659a3504c3.tar.xz |
Add a db.Dispose before calling Delete on the SQLite database.
On Windows, you are not able to delete a file while there is
still a handle to it open.
Diffstat (limited to 'OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs')
-rw-r--r-- | OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs index 14c4f56..998229f 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs | |||
@@ -64,6 +64,7 @@ namespace OpenSim.Data.SQLite.Tests | |||
64 | [TestFixtureTearDown] | 64 | [TestFixtureTearDown] |
65 | public void Cleanup() | 65 | public void Cleanup() |
66 | { | 66 | { |
67 | db.Dispose(); | ||
67 | System.IO.File.Delete(file); | 68 | System.IO.File.Delete(file); |
68 | } | 69 | } |
69 | } | 70 | } |