From 4d7893cb970c81f9f0d4971bb1fd431a0ef6e874 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 1 Apr 2025 15:13:13 +1100 Subject: [PATCH] Quick fix unmount requests getting dropped when there's no sd card --- src/tangara/audio/audio_fsm.cpp | 1 + 1 file changed, 1 insertion(+) 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([=]() { auto db = sServices->database().lock(); if (!db) { + events::System().Dispatch(UnmountReady{.idle = ev.idle}); return; } auto& queue = sServices->track_queue();