diff options
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llfilesystem/llfilesystem.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/indra/llfilesystem/llfilesystem.cpp b/indra/llfilesystem/llfilesystem.cpp index da44e8d98c..b029723e11 100644 --- a/indra/llfilesystem/llfilesystem.cpp +++ b/indra/llfilesystem/llfilesystem.cpp @@ -165,11 +165,14 @@ BOOL LLFileSystem::read(U8* buffer, S32 bytes) } } - // update the last access time for the file - this is required - // even though we are reading and not writing because this is the - // way the cache works - it relies on a valid "last accessed time" for - // each file so it knows how to remove the oldest, unused files - LLDiskCache::getInstance()->updateFileAccessTime(filename); + if (success == TRUE) + { + // update the last access time for the file - this is required + // even though we are reading and not writing because this is the + // way the cache works - it relies on a valid "last accessed time" for + // each file so it knows how to remove the oldest, unused files + LLDiskCache::getInstance()->updateFileAccessTime(filename); + } return success; } |