From 40fbdaaac4a43f76d99422c2eb382db8d941d14d Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Thu, 27 Aug 2009 21:25:16 +0100 Subject: Apply http://opensimulator.org/mantis/view.php?id=3829 Fix file access violation on Flotsam cache Thanks mcortez --- OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { try { - FileStream stream = File.Open(filename, FileMode.Open); + FileStream stream = File.Open(filename, FileMode.Open, FileAccess.Read, FileShare.Read); BinaryFormatter bformatter = new BinaryFormatter(); asset = (AssetBase)bformatter.Deserialize(stream); -- cgit v1.1