aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2009-08-27 21:25:16 +0100
committerJustin Clark-Casey (justincc)2009-08-27 21:25:16 +0100
commit40fbdaaac4a43f76d99422c2eb382db8d941d14d (patch)
tree83a0474b12dbed70391b041b94d50730b5078a75 /OpenSim
parent* Another attempt at fixing the random spurious test error. (diff)
downloadopensim-SC_OLD-40fbdaaac4a43f76d99422c2eb382db8d941d14d.zip
opensim-SC_OLD-40fbdaaac4a43f76d99422c2eb382db8d941d14d.tar.gz
opensim-SC_OLD-40fbdaaac4a43f76d99422c2eb382db8d941d14d.tar.bz2
opensim-SC_OLD-40fbdaaac4a43f76d99422c2eb382db8d941d14d.tar.xz
Apply http://opensimulator.org/mantis/view.php?id=3829
Fix file access violation on Flotsam cache Thanks mcortez
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
index c7723f1..4b582c2 100644
--- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
+++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
@@ -361,7 +361,7 @@ namespace Flotsam.RegionModules.AssetCache
361 { 361 {
362 try 362 try
363 { 363 {
364 FileStream stream = File.Open(filename, FileMode.Open); 364 FileStream stream = File.Open(filename, FileMode.Open, FileAccess.Read, FileShare.Read);
365 BinaryFormatter bformatter = new BinaryFormatter(); 365 BinaryFormatter bformatter = new BinaryFormatter();
366 366
367 asset = (AssetBase)bformatter.Deserialize(stream); 367 asset = (AssetBase)bformatter.Deserialize(stream);