summaryrefslogtreecommitdiff
path: root/src/tangara/system_fsm
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-10-04 14:41:05 +1000
committerailurux <ailuruxx@gmail.com>2024-10-04 14:41:05 +1000
commit7cc6f198cf437ae60185b65bfa556341be8ec63f (patch)
tree5fc3e23a1041ba952fd2298b5d886fe03564890d /src/tangara/system_fsm
parent39a5d062fc13ad81e91968e1c30b729ec606d934 (diff)
downloadtangara-fw-7cc6f198cf437ae60185b65bfa556341be8ec63f.tar.gz
Explicitly close the playlist files in the queue on storage unmount
Diffstat (limited to 'src/tangara/system_fsm')
-rw-r--r--src/tangara/system_fsm/running.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tangara/system_fsm/running.cpp b/src/tangara/system_fsm/running.cpp
index f065737b..227eac2c 100644
--- a/src/tangara/system_fsm/running.cpp
+++ b/src/tangara/system_fsm/running.cpp
@@ -214,6 +214,7 @@ void Running::react(const internal::Mount& ev) {
auto Running::unmountStorage() -> void {
ESP_LOGW(kTag, "unmounting storage");
+ sServices->track_queue().close();
sServices->database({});
sStorage.reset();
updateSdState(drivers::SdState::kNotMounted);