From b83adc01b9fcf43b65998ef1a70ef3ad62d471bf Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Fri, 13 Nov 2009 15:30:02 +0100 Subject: [PATCH] check for errors after calling status updater --- src/mpdpp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mpdpp.cpp b/src/mpdpp.cpp index 70ab90eb..3f1f7b92 100644 --- a/src/mpdpp.cpp +++ b/src/mpdpp.cpp @@ -303,6 +303,9 @@ void Connection::UpdateStatus() != mpd_status_get_state(itsCurrentStatus); } itsUpdater(this, itsChanges, itsErrorHandlerUserdata); + // status updater could invoke mpd commands that + // could fail se we need to check for errors + CheckForErrors(); // 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))