forked from len0rd/rockbox
Protect scrobbler_shutdown against multiple invocations, preventing double unregister of ata_idle callback. Probable fix for FS#8993 - Freeze on shutting down.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17533 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9098112869
commit
16c8f060e6
1 changed files with 3 additions and 0 deletions
|
@ -251,7 +251,10 @@ void scrobbler_shutdown(void)
|
|||
{
|
||||
#ifndef SIMULATOR
|
||||
if (scrobbler_ata_callback)
|
||||
{
|
||||
unregister_ata_idle_func(scrobbler_flush_callback, false);
|
||||
scrobbler_ata_callback = false;
|
||||
}
|
||||
#endif
|
||||
|
||||
scrobbler_flush_cache();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue