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

Loading…
Cancel
Save