mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-26 14:07:05 +03:00
llcache: Persist anything available during llcache_finalise
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
088917641f
commit
ac75a9161e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user