Don't get the dircache size while dircache is still initializing. If done during shutdown, it will force a foreground scan on next boot.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15013 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
29473fe877
commit
7d34565c62
1 changed files with 2 additions and 1 deletions
|
@ -1321,7 +1321,8 @@ void tree_flush(void)
|
|||
int old_val = global_status.dircache_size;
|
||||
if (global_settings.dircache)
|
||||
{
|
||||
global_status.dircache_size = dircache_get_cache_size();
|
||||
if (!dircache_is_initializing())
|
||||
global_status.dircache_size = dircache_get_cache_size();
|
||||
# ifdef HAVE_EEPROM_SETTINGS
|
||||
if (firmware_settings.initialized)
|
||||
dircache_save();
|
||||
|
|
Loading…
Reference in a new issue