Merge pull request #560 from zaidhaan/fix-mpd-block

Fix unresponsive stall when server error occurs
This commit is contained in:
Larson Carter authored and GitHub committed 2022-12-31 12:52:39 -06:00
commit 9f44edf0b1
1 file changed
+1 -4
+1 -4
View File
@@ -169,10 +169,7 @@ void PlaylistEditor::update()
}
catch (MPD::ServerError &e)
{
if (e.code() == MPD_SERVER_ERROR_SYSTEM) // no playlists directory
Statusbar::print(e.what());
else
throw;
Status::handleServerError(e);
}
if (idx < Playlists.size())
Playlists.resizeList(idx);