From b5b5d64c805009cf72c07d76505d81a64fd11764 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 26 Apr 2009 12:58:04 +0200 Subject: [PATCH] try polling mpd once per second once again I reverted this becaause elapsed time counter was not synchronized with mpd and it sometimes stalled and then increased by 2 seconds. for now I count elapsed time locally, so I can apply it again (until something else pops out, lol) --- src/status.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status.cpp b/src/status.cpp index f45bcd6a..97de7de4 100644 --- a/src/status.cpp +++ b/src/status.cpp @@ -118,7 +118,7 @@ void TraceMpdStatus() gettimeofday(&now, 0); if ((Mpd->Connected() - && ((now.tv_sec == past.tv_sec && now.tv_usec >= past.tv_usec+500000) || now.tv_sec > past.tv_sec)) + && (/*(now.tv_sec == past.tv_sec && now.tv_usec >= past.tv_usec+500000) || */now.tv_sec > past.tv_sec)) || UpdateStatusImmediately ) {