From 710f237b04a95706f6ad2e9d738591aaa59b21e5 Mon Sep 17 00:00:00 2001 From: casey langen Date: Fri, 9 Oct 2020 14:05:39 -0700 Subject: [PATCH] Stop playback on library disconnect. --- src/musikcube/app/layout/MainLayout.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/musikcube/app/layout/MainLayout.cpp b/src/musikcube/app/layout/MainLayout.cpp index de2d0379f..56d42c438 100755 --- a/src/musikcube/app/layout/MainLayout.cpp +++ b/src/musikcube/app/layout/MainLayout.cpp @@ -291,6 +291,10 @@ void MainLayout::OnLibraryConnectionStateChanged(ILibrary::ConnectionState state { this->SwitchToLibraryLayout(); } + + if (state == ILibrary::ConnectionState::Disconnected) { + this->playback.Stop(); + } } void MainLayout::OnIndexerStarted() {