diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Asset')
-rw-r--r-- | OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs index 9adb68b..7cba702 100644 --- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs +++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs | |||
@@ -262,7 +262,16 @@ namespace Flotsam.RegionModules.AssetCache | |||
262 | // If the file is already cached, don't cache it, just touch it so access time is updated | 262 | // If the file is already cached, don't cache it, just touch it so access time is updated |
263 | if (File.Exists(filename)) | 263 | if (File.Exists(filename)) |
264 | { | 264 | { |
265 | File.SetLastAccessTime(filename, DateTime.Now); | 265 | // We don't really want to know about sharing |
266 | // violations here. If the file is locked, then | ||
267 | // the other thread has updated the time for us. | ||
268 | try | ||
269 | { | ||
270 | File.SetLastAccessTime(filename, DateTime.Now); | ||
271 | } | ||
272 | catch | ||
273 | { | ||
274 | } | ||
266 | } else { | 275 | } else { |
267 | 276 | ||
268 | // Once we start writing, make sure we flag that we're writing | 277 | // Once we start writing, make sure we flag that we're writing |