Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'framework/cache.c')
-rw-r--r--framework/cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/framework/cache.c b/framework/cache.c
index e5c03c8e..a1cbfafc 100644
--- a/framework/cache.c
+++ b/framework/cache.c
@@ -127,6 +127,7 @@ void cache_notify(AbstractCache * cache) {
unsigned cnt = cache->wait_list_cnt;
assert(is_dispatch_thread());
+ if (cnt == 0) return;
list_remove(&cache->link);
cache->wait_list_cnt = 0;
if (wait_list_max < cnt) {

Back to the top