From fee0b53e969da78a70229d53f9e1331511b5f237 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 26 Dec 2018 23:08:39 +0100 Subject: [PATCH] imagecache: the timer function is already called inside imagecache_lock (sorry), fixes #5458 --- src/imagecache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/imagecache.c b/src/imagecache.c index b183bbdb2..d4dd3c8f7 100644 --- a/src/imagecache.c +++ b/src/imagecache.c @@ -385,7 +385,6 @@ imagecache_timer ( void ) time_t now, when; imagecache_image_t *img, *img_next; - tvh_mutex_lock(&imagecache_lock); now = gclk(); for (img = RB_FIRST(&imagecache_by_url); img; img = img_next) { img_next = RB_NEXT(img, url_link); @@ -404,7 +403,6 @@ imagecache_timer ( void ) if (when < now) imagecache_image_add(img); } - tvh_mutex_unlock(&imagecache_lock); } static void * -- 2.47.2