mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix #1028
This commit is contained in:
@@ -69,8 +69,8 @@ end
|
||||
function Cache:insert(key, object)
|
||||
-- guarantee that we have enough memory in cache
|
||||
if(object.size > self.max_memsize) then
|
||||
-- we're not allowed to claim this much at all
|
||||
error("too much memory claimed")
|
||||
DEBUG("too much memory claimed for", key)
|
||||
return
|
||||
end
|
||||
-- delete objects that least recently used
|
||||
-- (they are at the end of the cache_order array)
|
||||
|
||||
Reference in New Issue
Block a user