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)
This commit is contained in:
Andrzej Rybczak
2009-04-26 12:58:04 +02:00
parent c78d2f296c
commit b5b5d64c80

View File

@@ -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
)
{