diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs index 389fb7b..a25976d 100644 --- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs +++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs | |||
@@ -261,10 +261,14 @@ namespace Flotsam.RegionModules.AssetCache | |||
261 | 261 | ||
262 | try | 262 | try |
263 | { | 263 | { |
264 | // If the file is already cached, don't cache it, just touch it so access time is updated | 264 | // If the file is already cached just update access time. |
265 | if (File.Exists(filename)) | 265 | if (File.Exists(filename)) |
266 | { | 266 | { |
267 | File.SetLastAccessTime(filename, DateTime.Now); | 267 | lock (m_CurrentlyWriting) |
268 | { | ||
269 | if (!m_CurrentlyWriting.Contains(filename)) | ||
270 | File.SetLastAccessTime(filename, DateTime.Now); | ||
271 | } | ||
268 | } | 272 | } |
269 | else | 273 | else |
270 | { | 274 | { |