From 6b4610edc9bfe67692a2182afc584ea4e6fa5cb9 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 4 Aug 2019 10:46:17 +0100 Subject: [PATCH] llcache: Do not delete objects if they were iterator targets Signed-off-by: Daniel Silverstone --- content/llcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/llcache.c b/content/llcache.c index 06951e2ec..f3f4b68b0 100644 --- a/content/llcache.c +++ b/content/llcache.c @@ -397,7 +397,7 @@ static nserror llcache_send_event_to_users(llcache_object *object, user->iterator_target = was_target; - if (user->queued_for_delete) { + if (user->queued_for_delete && !was_target) { llcache_object_remove_user(object, user); llcache_object_user_destroy(user); }