diff options
| author | jacqueline <me@jacqueline.id.au> | 2025-04-01 15:13:13 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2025-04-01 15:14:28 +1100 |
| commit | 4d7893cb970c81f9f0d4971bb1fd431a0ef6e874 (patch) | |
| tree | 2bcae2022bea793f4c7d00bdbaec040915e42216 /src | |
| parent | 22fd238ed220d1cd0df683841e6beca5efe803ed (diff) | |
| download | tangara-fw-4d7893cb970c81f9f0d4971bb1fd431a0ef6e874.tar.gz | |
Quick fix unmount requests getting dropped when there's no sd card
Diffstat (limited to 'src')
| -rw-r--r-- | src/tangara/audio/audio_fsm.cpp | 1 |
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(); |
