diff options
author | Justin Clark-Casey (justincc) | 2009-08-27 21:25:16 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2009-08-27 21:25:16 +0100 |
commit | 40fbdaaac4a43f76d99422c2eb382db8d941d14d (patch) | |
tree | 83a0474b12dbed70391b041b94d50730b5078a75 | |
parent | * Another attempt at fixing the random spurious test error. (diff) | |
download | opensim-SC-40fbdaaac4a43f76d99422c2eb382db8d941d14d.zip opensim-SC-40fbdaaac4a43f76d99422c2eb382db8d941d14d.tar.gz opensim-SC-40fbdaaac4a43f76d99422c2eb382db8d941d14d.tar.bz2 opensim-SC-40fbdaaac4a43f76d99422c2eb382db8d941d14d.tar.xz |
Apply http://opensimulator.org/mantis/view.php?id=3829
Fix file access violation on Flotsam cache
Thanks mcortez
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs | 2 |
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); |