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");
|
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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue