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:
parent
8137489e2b
commit
f61b7948f9
1 changed files with 8 additions and 1 deletions
|
|
@ -104,8 +104,15 @@ static int browser(void* param)
|
|||
case GO_TO_DBBROWSER:
|
||||
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 */
|
||||
struct tagcache_stat *stat = tagcache_get_stat();
|
||||
if (!stat->ready && !stat->commit_delayed && stat->processed_entries == 0)
|
||||
{
|
||||
/* Prompt the user */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue