aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rwxr-xr-xOpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
index 5a48134..bbf7be7 100755
--- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
+++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
@@ -337,8 +337,10 @@ namespace OpenSim.Region.CoreModules.Asset
337 337
338 } 338 }
339 339
340 Util.FireAndForget( 340 // Util.FireAndForget(
341 delegate { WriteFileCache(filename, asset); }, null, "FlotsamAssetCache.UpdateFileCache"); 341 // delegate { WriteFileCache(filename, asset); }, null, "FlotsamAssetCache.UpdateFileCache");
342 //this must be sync
343 WriteFileCache(filename, asset);
342 } 344 }
343 } 345 }
344 catch (Exception e) 346 catch (Exception e)
@@ -800,6 +802,7 @@ namespace OpenSim.Region.CoreModules.Asset
800 stream = File.Open(tempname, FileMode.Create); 802 stream = File.Open(tempname, FileMode.Create);
801 BinaryFormatter bformatter = new BinaryFormatter(); 803 BinaryFormatter bformatter = new BinaryFormatter();
802 bformatter.Serialize(stream, asset); 804 bformatter.Serialize(stream, asset);
805 stream.Flush();
803 } 806 }
804 catch (IOException e) 807 catch (IOException e)
805 { 808 {