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

Fix unresponsive stall when server error occurs
This commit is contained in:
Larson Carter
2022-12-31 12:52:39 -06:00
committed by GitHub

View File

@@ -169,10 +169,7 @@ void PlaylistEditor::update()
} }
catch (MPD::ServerError &e) catch (MPD::ServerError &e)
{ {
if (e.code() == MPD_SERVER_ERROR_SYSTEM) // no playlists directory Status::handleServerError(e);
Statusbar::print(e.what());
else
throw;
} }
if (idx < Playlists.size()) if (idx < Playlists.size())
Playlists.resizeList(idx); Playlists.resizeList(idx);