From 74df004c9bb8d212c3146aa3f674e56aa4b27121 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sun, 1 Jan 2023 19:29:37 -0800 Subject: [PATCH] Fix daemon crash during shutdown. --- CHANGELOG.txt | 1 + src/musikcubed/main.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 64977b242..a8f53997a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,5 +1,6 @@ 0.99.4 +* fixed bug where `musikcubed` could crash while stopping. * added `dark mode` awareness to Windows build. * added `PortAudio` output driver. * added support for Haiku OS. diff --git a/src/musikcubed/main.cpp b/src/musikcubed/main.cpp index 4f1ac7855..737b3466c 100644 --- a/src/musikcubed/main.cpp +++ b/src/musikcubed/main.cpp @@ -299,7 +299,9 @@ int main(int argc, char** argv) { library->Indexer()->Shutdown(); } + LibraryFactory::Instance().Shutdown(); plugin::Shutdown(); + debug::Shutdown(); remove(getLockfileFn().c_str()); }