fixed: make any socket error show in the song text
This commit is contained in:
parent
11b5eeb827
commit
34a32e334a
1 changed files with 3 additions and 8 deletions
|
@ -213,12 +213,7 @@ bool CMpdClient::GetPlayStatus()
|
|||
}
|
||||
|
||||
SetCurrentSong("Unable to get play status");
|
||||
|
||||
CLock lock(m_condition);
|
||||
if (m_isplaying != false)
|
||||
m_playingchanged = true;
|
||||
|
||||
m_isplaying = false;
|
||||
m_isplaying = true; //to make the error message show on the led display
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -238,8 +233,8 @@ void CMpdClient::SetCurrentSong(const std::string& song)
|
|||
|
||||
void CMpdClient::SetSockError()
|
||||
{
|
||||
string error = m_address + ":" + ToString(m_port) + " " + m_socket.GetError();
|
||||
SetCurrentSong(error);
|
||||
SetCurrentSong(m_socket.GetError());
|
||||
m_isplaying = true; //to make the error message show on the led display
|
||||
}
|
||||
|
||||
bool CMpdClient::CurrentSong(std::string& song)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue