summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2025-04-01 15:13:13 +1100
committerjacqueline <me@jacqueline.id.au>2025-04-01 15:14:28 +1100
commit4d7893cb970c81f9f0d4971bb1fd431a0ef6e874 (patch)
tree2bcae2022bea793f4c7d00bdbaec040915e42216
parent22fd238ed220d1cd0df683841e6beca5efe803ed (diff)
downloadtangara-fw-4d7893cb970c81f9f0d4971bb1fd431a0ef6e874.tar.gz
Quick fix unmount requests getting dropped when there's no sd card
-rw-r--r--src/tangara/audio/audio_fsm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tangara/audio/audio_fsm.cpp b/src/tangara/audio/audio_fsm.cpp
index 27c29eee..1e8e0cf6 100644
--- a/src/tangara/audio/audio_fsm.cpp
+++ b/src/tangara/audio/audio_fsm.cpp
@@ -539,6 +539,7 @@ void Standby::react(const system_fsm::UnmountRequest& ev) {
sServices->bg_worker().Dispatch<void>([=]() {
auto db = sServices->database().lock();
if (!db) {
+ events::System().Dispatch(UnmountReady{.idle = ev.idle});
return;
}
auto& queue = sServices->track_queue();