Stop playback on library disconnect.

This commit is contained in:
casey langen 2020-10-09 14:05:39 -07:00
parent 6e55abb2d6
commit 710f237b04

View File

@ -291,6 +291,10 @@ void MainLayout::OnLibraryConnectionStateChanged(ILibrary::ConnectionState state
{ {
this->SwitchToLibraryLayout(); this->SwitchToLibraryLayout();
} }
if (state == ILibrary::ConnectionState::Disconnected) {
this->playback.Stop();
}
} }
void MainLayout::OnIndexerStarted() { void MainLayout::OnIndexerStarted() {