1
0
Fork 0
forked from len0rd/rockbox

Don't try to initialise while the database status is unknown

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12679 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Steve Bavin 2007-03-07 21:36:43 +00:00
parent 8137489e2b
commit f61b7948f9

View file

@ -104,8 +104,15 @@ static int browser(void* param)
case GO_TO_DBBROWSER: case GO_TO_DBBROWSER:
if (!tagcache_is_usable()) if (!tagcache_is_usable())
{ {
/* Check if we're still initialising, so status is unknown */
struct tagcache_stat *stat = tagcache_get_stat();
if (!stat->initialized)
{
gui_syncsplash(HZ*2, true, str(LANG_TAGCACHE_BUSY));
return GO_TO_PREVIOUS;
}
/* Re-init if required */ /* Re-init if required */
struct tagcache_stat *stat = tagcache_get_stat();
if (!stat->ready && !stat->commit_delayed && stat->processed_entries == 0) if (!stat->ready && !stat->commit_delayed && stat->processed_entries == 0)
{ {
/* Prompt the user */ /* Prompt the user */