summaryrefslogtreecommitdiff
path: root/content/llcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/llcache.c')
-rw-r--r--content/llcache.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/llcache.c b/content/llcache.c
index 3a75bf971..9c74fbd6e 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -3769,6 +3769,11 @@ void llcache_finalise(void)
llcache_object *object, *next;
uint64_t total_bandwidth = 0; /* total bandwidth */
+ /* Attempt to persist anything we have left lying around */
+ llcache_persist(NULL);
+ /* Now clear the persistence callback */
+ guit->misc->schedule(-1, llcache_persist, NULL);
+
/* Clean uncached objects */
for (object = llcache->uncached_objects; object != NULL; object = next) {
llcache_object_user *user, *next_user;