Fix MPD blocking when server error occurs by handling directly without blocking further execution by throwing
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user