From: Jaroslav Kysela Date: Wed, 26 Dec 2018 22:08:39 +0000 (+0100) Subject: imagecache: the timer function is already called inside imagecache_lock (sorry),... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fee0b53e969da78a70229d53f9e1331511b5f237;p=thirdparty%2Ftvheadend.git imagecache: the timer function is already called inside imagecache_lock (sorry), fixes #5458 --- 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 *