If clearing stored playlist fails, don't return error + OK. but only the error.
this was caused by always having the handleStoredPlaylist function return 0. git-svn-id: https://svn.musicpd.org/mpd/trunk@7105 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -238,8 +238,7 @@ int clearPlaylist(int fd)
|
|||||||
|
|
||||||
int clearStoredPlaylist(int fd, char *utf8file)
|
int clearStoredPlaylist(int fd, char *utf8file)
|
||||||
{
|
{
|
||||||
removeAllFromStoredPlaylistByPath(fd, utf8file);
|
return removeAllFromStoredPlaylistByPath(fd, utf8file);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int showPlaylist(int fd)
|
int showPlaylist(int fd)
|
||||||
|
Reference in New Issue
Block a user