Skip to content

Commit 9f44edf

Browse files
Merge pull request ncmpcpp#560 from zaidhaan/fix-mpd-block
Fix unresponsive stall when server error occurs
2 parents 417d717 + d96e3e5 commit 9f44edf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/screens/playlist_editor.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,7 @@ void PlaylistEditor::update()
169169
}
170170
catch (MPD::ServerError &e)
171171
{
172-
if (e.code() == MPD_SERVER_ERROR_SYSTEM) // no playlists directory
173-
Statusbar::print(e.what());
174-
else
175-
throw;
172+
Status::handleServerError(e);
176173
}
177174
if (idx < Playlists.size())
178175
Playlists.resizeList(idx);

0 commit comments

Comments
 (0)