From 7cc6f198cf437ae60185b65bfa556341be8ec63f Mon Sep 17 00:00:00 2001 From: ailurux Date: Fri, 4 Oct 2024 14:41:05 +1000 Subject: Explicitly close the playlist files in the queue on storage unmount --- src/tangara/system_fsm/running.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tangara/system_fsm/running.cpp') 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); -- cgit v1.2.3