fix Connection::AddSong()
This commit is contained in:
@@ -431,9 +431,10 @@ int Connection::AddSong(const std::string &path)
|
|||||||
{
|
{
|
||||||
if (GetPlaylistLength() < itsMaxPlaylistLength)
|
if (GetPlaylistLength() < itsMaxPlaylistLength)
|
||||||
{
|
{
|
||||||
id = mpd_send_add_id(itsConnection, path.c_str());
|
mpd_send_add_id(itsConnection, path.c_str());
|
||||||
if (!isCommandsListEnabled)
|
if (!isCommandsListEnabled)
|
||||||
{
|
{
|
||||||
|
id = mpd_recv_song_id(itsConnection);
|
||||||
mpd_response_finish(itsConnection);
|
mpd_response_finish(itsConnection);
|
||||||
UpdateStatus();
|
UpdateStatus();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user