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)
master
Andrzej Rybczak 17 years ago
parent c78d2f296c
commit b5b5d64c80
  1. 2
      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
)
{

Loading…
Cancel
Save