fixed: wait 10 seconds after an error of GetCurrentSong so the error can be read on the display

This commit is contained in:
Bob van Loosen 2012-12-23 20:05:44 +01:00
parent 8234535ffb
commit b775565689

View file

@ -31,11 +31,16 @@ void CMpdClient::Process()
} }
if (!GetCurrentSong()) if (!GetCurrentSong())
{
m_socket.Close(); m_socket.Close();
USleep(10000000);
}
else
{
USleep(1000000); USleep(1000000);
} }
} }
}
bool CMpdClient::OpenSocket() bool CMpdClient::OpenSocket()
{ {