From ee1c231779c2e75c2d267e88ef859209a7c93d9c Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 17 Nov 2008 07:34:00 +0000 Subject: move the scrobbler and playlist shutdown/restart calls out of tree.c and move them into the regular usb/shutdown handlers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19124 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/misc.c') diff --git a/apps/misc.c b/apps/misc.c index 02d8bed2d8..9559b0c44f 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -620,6 +620,8 @@ bool settings_parseline(char* line, char** name, char** value) static void system_flush(void) { + scrobbler_shutdown(); + playlist_shutdown(); tree_flush(); call_storage_idle_notifys(true); /*doesnt work on usb and shutdown from ata thread */ } @@ -627,6 +629,7 @@ static void system_flush(void) static void system_restore(void) { tree_restore(); + scrobbler_init(); } static bool clean_shutdown(void (*callback)(void *), void *parameter) @@ -915,7 +918,6 @@ long default_event_handler_ex(long event, void (*callback)(void *), void *parame (mmc_remove_request() == SYS_HOTSWAP_EXTRACTED)) #endif { - scrobbler_flush_cache(); system_flush(); #ifdef BOOTFILE #if !defined(USB_NONE) && !defined(USB_IPODSTYLE) -- cgit v1.2.3