fixed: mpd commands need a newline afterwards

This commit is contained in:
Bob van Loosen 2012-12-20 19:39:40 +01:00
parent f490e25be2
commit 354e99eaf3

View file

@ -68,7 +68,7 @@ bool CMpdClient::OpenSocket()
bool CMpdClient::GetCurrentSong()
{
CTcpData data;
data.SetData("currentsong");
data.SetData("currentsong\n");
if (m_socket.Write(data) != SUCCESS)
{
LogError("Writing socket: %s", m_socket.GetError().c_str());