mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[dacp] Increase current revision number even if there are no open requests
This change aligns with iTunes behavior. It also means that a client that is not long polling can use the revision number (cmsr) value to check for changes.
This commit is contained in:
parent
919906233c
commit
dfd2a4ab14
@ -743,14 +743,14 @@ playstatusupdate_cb(int fd, short what, void *arg)
|
||||
read(update_pipe[0], &dummy, sizeof(dummy));
|
||||
#endif
|
||||
|
||||
current_rev++;
|
||||
|
||||
if (!update_requests)
|
||||
goto readd;
|
||||
|
||||
CHECK_NULL(L_DACP, evbuf = evbuffer_new());
|
||||
CHECK_NULL(L_DACP, update = evbuffer_new());
|
||||
|
||||
current_rev++;
|
||||
|
||||
ret = make_playstatusupdate(update);
|
||||
if (ret < 0)
|
||||
goto out_free_update;
|
||||
|
Loading…
Reference in New Issue
Block a user