summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/misc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 65d78beaeb..87fd93513e 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -504,8 +504,11 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
504 504
505 gui_syncsplash(0, true, str(LANG_SHUTTINGDOWN)); 505 gui_syncsplash(0, true, str(LANG_SHUTTINGDOWN));
506 506
507 if (global_settings.fade_on_stop) 507 if (global_settings.fade_on_stop
508 && (audio_status() & AUDIO_STATUS_PLAY))
509 {
508 fade(0); 510 fade(0);
511 }
509 512
510 audio_stop(); 513 audio_stop();
511 while (audio_status()) 514 while (audio_status())