fixed: make any socket error show in the song text

This commit is contained in:
Bob van Loosen 2013-03-27 00:09:01 +01:00
parent 11b5eeb827
commit 34a32e334a

View file

@ -213,12 +213,7 @@ bool CMpdClient::GetPlayStatus()
} }
SetCurrentSong("Unable to get play status"); SetCurrentSong("Unable to get play status");
m_isplaying = true; //to make the error message show on the led display
CLock lock(m_condition);
if (m_isplaying != false)
m_playingchanged = true;
m_isplaying = false;
return false; return false;
} }
@ -238,8 +233,8 @@ void CMpdClient::SetCurrentSong(const std::string& song)
void CMpdClient::SetSockError() void CMpdClient::SetSockError()
{ {
string error = m_address + ":" + ToString(m_port) + " " + m_socket.GetError(); SetCurrentSong(m_socket.GetError());
SetCurrentSong(error); m_isplaying = true; //to make the error message show on the led display
} }
bool CMpdClient::CurrentSong(std::string& song) bool CMpdClient::CurrentSong(std::string& song)