mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-12 00:47:49 -04:00
tagcache: Prevent a infinite tagcache scan/commit loop
If no new entries were committed, there's no need to kick off a new scan/autoupdate. Change-Id: I3e8e497e4fe04d46612401e1ec6b72f30a8b77a4
This commit is contained in:
parent
dfa33c246b
commit
e15451815a
1 changed files with 2 additions and 2 deletions
|
|
@ -3549,8 +3549,8 @@ static bool commit(void)
|
||||||
tcrc_buffer_unlock();
|
tcrc_buffer_unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reload tagcache. */
|
/* Reload tagcache only if we committed new entries */
|
||||||
if (tc_stat.ramcache_allocated > 0)
|
if (tc_stat.ramcache_allocated > 0 && tch.entry_count > 0)
|
||||||
tagcache_start_scan();
|
tagcache_start_scan();
|
||||||
#endif /* HAVE_TC_RAMCACHE */
|
#endif /* HAVE_TC_RAMCACHE */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue