From 0007ba4082ba4dc2694aacf80237a4c74ec76ca9 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Fri, 18 Dec 2009 17:00:29 +0100 Subject: [PATCH] remove hack that guaranteed proper status update (not needed anymore) it's fixed for mpd-git, newest mpd-0.15.x doesn't seem to suffer from this bug anymore, mpd-0.13 doesn't support idle. no idea about mpd-0.14 though, but come on. if you use it, upgrade. --- src/mpdpp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mpdpp.cpp b/src/mpdpp.cpp index 3f1f7b92..4562bc0f 100644 --- a/src/mpdpp.cpp +++ b/src/mpdpp.cpp @@ -306,12 +306,16 @@ void Connection::UpdateStatus() // status updater could invoke mpd commands that // could fail se we need to check for errors CheckForErrors(); +# if 0 // below conditionals are a hack to workaround mpd bug 2608/2612 // by fetching another status with correct values after a while if (!((idle_mask & MPD_IDLE_PLAYER) && !itsChanges.PlayerState)) GoIdle(); else if (supportsIdle && !isIdle) OrderDataFetching(); +# else + GoIdle(); +# endif } }