From 7d34565c625ff011086a049a0f6bab13c7389d23 Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Sun, 7 Oct 2007 12:05:48 +0000 Subject: 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 --- apps/tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/tree.c b/apps/tree.c index fb2ed8d320..74a6134f57 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -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(); -- cgit v1.2.3