1
0
Fork 0
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:
Bertrik Sikken 2008-05-15 23:02:22 +00:00
parent 9098112869
commit 16c8f060e6

View file

@ -251,7 +251,10 @@ void scrobbler_shutdown(void)
{ {
#ifndef SIMULATOR #ifndef SIMULATOR
if (scrobbler_ata_callback) if (scrobbler_ata_callback)
{
unregister_ata_idle_func(scrobbler_flush_callback, false); unregister_ata_idle_func(scrobbler_flush_callback, false);
scrobbler_ata_callback = false;
}
#endif #endif
scrobbler_flush_cache(); scrobbler_flush_cache();