Fix file access violation on Flotsam cache Thanks mcortezremotes/origin/0.6.7-post-fixes
parent
6f077d5e5f
commit
40fbdaaac4
|
@ -361,7 +361,7 @@ namespace Flotsam.RegionModules.AssetCache
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
FileStream stream = File.Open(filename, FileMode.Open);
|
FileStream stream = File.Open(filename, FileMode.Open, FileAccess.Read, FileShare.Read);
|
||||||
BinaryFormatter bformatter = new BinaryFormatter();
|
BinaryFormatter bformatter = new BinaryFormatter();
|
||||||
|
|
||||||
asset = (AssetBase)bformatter.Deserialize(stream);
|
asset = (AssetBase)bformatter.Deserialize(stream);
|
||||||
|
|
Loading…
Reference in New Issue