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:
Magnus Holmgren 2007-10-07 12:05:48 +00:00
parent 29473fe877
commit 7d34565c62

View file

@ -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();