-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2 Idle events per song change #1636
Comments
It looks like idle events are not evicted fast enough after being received by client. Second idle command comes immidiately after response to first one, but event is still in queue, so you get it again. Example sends https://go.dev/play/p/C5U8wjiU7Ks {"time":"2023-11-15T20:52:33.370192762+03:00","level":"INFO","msg":"Connected","addr":"localhost:6600","response":"OK MPD 0.23.5 "}
{"time":"2023-11-15T20:52:33.370252746+03:00","level":"INFO","msg":"Sending","command":"idle player\n"}
{"time":"2023-11-15T20:52:33.371701948+03:00","level":"INFO","msg":"Connected","addr":"localhost:6600","response":"OK MPD 0.23.5 "}
{"time":"2023-11-15T20:52:34.371775007+03:00","level":"INFO","msg":"Sending command: next"}
{"time":"2023-11-15T20:52:34.438501906+03:00","level":"INFO","msg":"Idle response: changed: player OK "}
{"time":"2023-11-15T20:52:34.438522919+03:00","level":"INFO","msg":"Sending","command":"idle player\n"}
{"time":"2023-11-15T20:52:34.439681475+03:00","level":"INFO","msg":"Idle response: changed: player OK "}
{"time":"2023-11-15T20:52:34.439696731+03:00","level":"INFO","msg":"Sending","command":"idle player\n"}
{"time":"2023-11-15T20:52:34.443113634+03:00","level":"INFO","msg":"Idle response: changed: player OK "}
{"time":"2023-11-15T20:52:34.443132941+03:00","level":"INFO","msg":"Sending","command":"idle player\n"} |
Disregard previous message, adding delays doesn't change anything. mpd verbose log:
|
My files are not local (nfs), so I get two events. Patched @roizcorp I assume you have same configuration? |
Bug report
Describe the bug
I'm not sure if this even a bug, when using
mpc idleloop
per song change (song ends and new one starts) the command generates 2player
events while i believe in the past it generated only oneAlso I think it would be useful to output also the action rather than only
player
e.g.next
stop
etc.This happens with mpc 0.34 and mpd 23.9
Thank you
The text was updated successfully, but these errors were encountered: