Fix MPD blocking when server error occurs by handling directly without blocking further execution by throwing

wilder
Zaidhaan Hussain 3 years ago
parent 417d7172e5
commit d96e3e514d
  1. 5
      src/screens/playlist_editor.cpp

@ -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);

Loading…
Cancel
Save