From b77556568921e7a4d58d73ecfd2e08b69136320b Mon Sep 17 00:00:00 2001 From: Bob van Loosen Date: Sun, 23 Dec 2012 20:05:44 +0100 Subject: [PATCH] fixed: wait 10 seconds after an error of GetCurrentSong so the error can be read on the display --- src/mpdclient.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mpdclient.cpp b/src/mpdclient.cpp index ccf7a49..2edf06f 100644 --- a/src/mpdclient.cpp +++ b/src/mpdclient.cpp @@ -31,9 +31,14 @@ void CMpdClient::Process() } if (!GetCurrentSong()) + { m_socket.Close(); - - USleep(1000000); + USleep(10000000); + } + else + { + USleep(1000000); + } } }