From 3b3134610348a56bbf25cfd256b0f36908d0d752 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 16 Apr 2006 17:32:54 +0000 Subject: Commit tagcache in background when possible (at least dircache enabled). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9686 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/misc.c') diff --git a/apps/misc.c b/apps/misc.c index 6493e7b..ba360e5 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -44,6 +44,7 @@ #include "version.h" #include "font.h" #include "splash.h" +#include "tagcache.h" #ifdef HAVE_MMC #include "ata_mmc.h" #endif @@ -487,6 +488,13 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter) (void)parameter; exit(0); #else + if (tagcache_get_commit_step() > 0) + { + cancel_shutdown(); + gui_syncsplash(HZ, true, str(LANG_TAGCACHE_BUSY)); + return false; + } + #if defined(HAVE_CHARGING) && !defined(HAVE_POWEROFF_WHILE_CHARGING) if(!charger_inserted()) #endif -- cgit v1.1