mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-29 00:23:23 -05:00
[mpd] minor cleanup
This commit is contained in:
parent
9165cfc5da
commit
9f1568349b
@ -3509,7 +3509,7 @@ mpd_command_sticker(struct evbuffer *evbuf, int argc, char **argv, char **errmsg
|
|||||||
return ACK_ERROR_ARG;
|
return ACK_ERROR_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=0; i<(sizeof(mpd_sticker_handlers) / sizeof(struct mpd_sticker_command)); ++i)
|
for (i = 0; i < (sizeof(mpd_sticker_handlers) / sizeof(struct mpd_sticker_command)); ++i)
|
||||||
{
|
{
|
||||||
cmd_param = &mpd_sticker_handlers[i];
|
cmd_param = &mpd_sticker_handlers[i];
|
||||||
if (cmd_param->cmd && strcmp(argv[1], cmd_param->cmd) == 0)
|
if (cmd_param->cmd && strcmp(argv[1], cmd_param->cmd) == 0)
|
||||||
@ -5074,9 +5074,6 @@ mpd_notify_idle_client(struct mpd_client_ctx *client_ctx, short events)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// in case mpd_add_idle_events has added any events
|
|
||||||
events |= client_ctx->events;
|
|
||||||
|
|
||||||
if (!(client_ctx->idle_events & events))
|
if (!(client_ctx->idle_events & events))
|
||||||
{
|
{
|
||||||
DPRINTF(E_DBG, L_MPD, "Client not listening for events: %d\n", events);
|
DPRINTF(E_DBG, L_MPD, "Client not listening for events: %d\n", events);
|
||||||
|
Loading…
Reference in New Issue
Block a user