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.
This commit is contained in:
@@ -306,12 +306,16 @@ void Connection::UpdateStatus()
|
|||||||
// status updater could invoke mpd commands that
|
// status updater could invoke mpd commands that
|
||||||
// could fail se we need to check for errors
|
// could fail se we need to check for errors
|
||||||
CheckForErrors();
|
CheckForErrors();
|
||||||
|
# if 0
|
||||||
// below conditionals are a hack to workaround mpd bug 2608/2612
|
// below conditionals are a hack to workaround mpd bug 2608/2612
|
||||||
// by fetching another status with correct values after a while
|
// by fetching another status with correct values after a while
|
||||||
if (!((idle_mask & MPD_IDLE_PLAYER) && !itsChanges.PlayerState))
|
if (!((idle_mask & MPD_IDLE_PLAYER) && !itsChanges.PlayerState))
|
||||||
GoIdle();
|
GoIdle();
|
||||||
else if (supportsIdle && !isIdle)
|
else if (supportsIdle && !isIdle)
|
||||||
OrderDataFetching();
|
OrderDataFetching();
|
||||||
|
# else
|
||||||
|
GoIdle();
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user