From 1da1b70e269b16d381c892fb7003ec5526471b60 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 17 Aug 2011 11:27:33 +0000 Subject: Fix panic after usb extraction if lastfm logging is enabled. Previously the scrobbler was shutdown, probably to force a log flush, and the cache was re-allocated afterwards. Now don't shut down or re-allocate, but instead rely on the ata idle callback which is called called on usb insertion to do the log flush. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30325 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'apps') diff --git a/apps/misc.c b/apps/misc.c index d74fe73205..69c62da238 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -239,7 +239,6 @@ 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 */ @@ -248,7 +247,6 @@ static void system_flush(void) static void system_restore(void) { tree_restore(); - scrobbler_init(); } static bool clean_shutdown(void (*callback)(void *), void *parameter) -- cgit v1.2.3