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:
@@ -118,7 +118,7 @@ void TraceMpdStatus()
|
|||||||
|
|
||||||
gettimeofday(&now, 0);
|
gettimeofday(&now, 0);
|
||||||
if ((Mpd->Connected()
|
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
|
|| UpdateStatusImmediately
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user